Getting Player's Camera Look At
#5

pawn Код:
if(GetDistanceBetweenPoints(x1, y1, z1, dX, dY, dZ) <= 50.0)
50.0 is quite a lot, you could look in the completely other direction and it would return true.
Reduce this to something between 5-10 if you want to check if the player looks in the area around the fire, and 2-4 for having it excactly at the middle of the screen
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)