LookVector
#1
I will check if a Entity is in the LookVector of a player.
Is this possible for MCServer?

And give it a function to get the NearbyEntities?
Reply
Thanks given by:
#2
Every cEntity instance has a GetLookVector() function that returns the look vector. However, you will need to implement finding entities being looked at yourself.
Reply
Thanks given by:
#3
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.
static bool m_test;

Edit: I added this to a new file.. maybe i need to include something or so?
Reply
Thanks given by:
#4
If you add a file you usually need to rerun cmake to regenerate the makefiles/projectfiles.
Reply
Thanks given by:
#5
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 Wink
Reply
Thanks given by:
#6
After i done "cmake ." the same error.

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 Wink

I made it static.. i can't define it in the constrcutor when it is static.
I didn't find good answers...
Reply
Thanks given by:
#7
See the second answer: http://stackoverflow.com/questions/19520...ss-members
Reply
Thanks given by: daniel0916




Users browsing this thread: 4 Guest(s)