02-13-2014, 11:34 PM
02-13-2014, 11:43 PM
Every cEntity instance has a GetLookVector() function that returns the look vector. However, you will need to implement finding entities being looked at yourself.
02-15-2014, 02:00 AM
Okay, this don't belong to this but i will ask for this here:
I become this error on compiling ("unresolved external symbol") when i will make a boolean static.
Edit: I added this to a new file.. maybe i need to include something or so?
I become this error on compiling ("unresolved external symbol") when i will make a boolean static.
static bool m_test;
Edit: I added this to a new file.. maybe i need to include something or so?
02-15-2014, 03:05 AM
If you add a file you usually need to rerun cmake to regenerate the makefiles/projectfiles.
02-15-2014, 04:27 AM
If it's a member variable you also need to define it in a cpp file. Google should also help a lot with compiler errors 

02-15-2014, 05:00 AM
After i done "cmake ." the same error.
Edit: I didn't see FakeTruth's comment.
I made it static.. i can't define it in the constrcutor when it is static.
I didn't find good answers...
Edit: I didn't see FakeTruth's comment.
(02-15-2014, 04:27 AM)FakeTruth Wrote: [ -> ]If it's a member variable you also need to define it in a cpp file. Google should also help a lot with compiler errors
I made it static.. i can't define it in the constrcutor when it is static.
I didn't find good answers...
02-15-2014, 06:14 AM
See the second answer: http://stackoverflow.com/questions/19520...ss-members