Posts: 219
Threads: 11
Joined: Dec 2013
Thanks: 52
Given 8 thank(s) in 4 post(s)
02-13-2014, 11:34 PM
(This post was last modified: 02-13-2014, 11:35 PM by daniel0916.)
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?
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
Every cEntity instance has a GetLookVector() function that returns the look vector. However, you will need to implement finding entities being looked at yourself.
Posts: 783
Threads: 12
Joined: Jan 2014
Thanks: 2
Given 73 thank(s) in 61 post(s)
02-15-2014, 03:05 AM
(This post was last modified: 02-15-2014, 03:05 AM by worktycho.)
If you add a file you usually need to rerun cmake to regenerate the makefiles/projectfiles.