Getting Player's Camera Look At
#7

Yes, thats what i mean. The script creates a point with the same distance to the player as the fixpoint (the fire), but in the direction the player looks at. Then it calculates the distance between those two points. If it is below 50, it will return true.
But if you are e.g. 20m away from the fire, you can look anywhere, because the distance between them can be maximal 40m, if you look in the complete opposite direction of the fire.
So set it to a value like the ones i posted before, and it will work.

e.g.
pawn Код:
if(GetDistanceBetweenPoints(x1, y1, z1, dX, dY, dZ) <= 5.0)
Reply


Messages In This Thread
Getting Player's Camera Look At - by Maxips2 - 04.10.2010, 16:15
Re: Getting Player's Camera Look At - by samgreen - 04.10.2010, 16:37
Re: Getting Player's Camera Look At - by zfkdaniel - 04.10.2010, 18:57
Re: Getting Player's Camera Look At - by Maxips2 - 04.10.2010, 19:35
Re: Getting Player's Camera Look At - by Mauzen - 05.10.2010, 12:21
Re: Getting Player's Camera Look At - by Maxips2 - 05.10.2010, 13:29
Re: Getting Player's Camera Look At - by Mauzen - 05.10.2010, 13:35
Re: Getting Player's Camera Look At - by Maxips2 - 05.10.2010, 14:08
Re: Getting Player's Camera Look At - by Mauzen - 05.10.2010, 14:15
Re: Getting Player's Camera Look At - by Maxips2 - 05.10.2010, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)