XY infront of player
#9

pawn Код:
new Float:PX, Float:PY, Float:PZ;
GetPlayerPos(playerid,PX,PY,PZ); //get current pos
SetPlayerCameraPos(playerid,PX,PY,PZ + 10.00); //set camera to current pos plus 10 on the z axis
GetXYInFrontOfPlayer(playerid,PX,PY,20); //do math to work out 20 units infront of the players x,y axes
SetPlayerCheckpoint(playerid, PX, PY, PZ, 3.00); //set the checkpoint 20 units infront (above math)
SetPlayerCameraLookAt(playerid,PX,PY,PZ); //look at 20 units infront (above math)
SetPlayerVirtualWorld(playerid, 1); //blah
TogglePlayerControllable(playerid,0); //blah
Reply


Messages In This Thread
XY infront of player - by pagie1111 - 19.10.2009, 13:29
Re: XY infront of player - by Think - 19.10.2009, 13:31
Re: XY infront of player - by pagie1111 - 19.10.2009, 13:32
Re: XY infront of player - by Jefff - 19.10.2009, 13:52
Re: XY infront of player - by pagie1111 - 19.10.2009, 13:54
Re: XY infront of player - by pagie1111 - 20.10.2009, 09:28
Re: XY infront of player - by Donny_k - 20.10.2009, 09:35
Re: XY infront of player - by pagie1111 - 20.10.2009, 09:39
Re: XY infront of player - by Donny_k - 20.10.2009, 10:00

Forum Jump:


Users browsing this thread: 1 Guest(s)