Stopping npcs
#4

pawn Код:
new Float: fA, Float: X, Float: Y, Float: Z, Float: nX, Float: nY;
GetPlayerFacingAngle(npcid, fA);
GetPlayerPos(npcid, X, Y, Z);

nX = X + ( 2.0 * floatcos(fA, degrees) );
nY = Y + ( 2.0 * floatsin(fA, degrees) );

if(IsPlayerInRangeOfPoint(playerid, nX, nY, Z)) return true; // his at the loc
Basic structure. Not tested.
Reply


Messages In This Thread
Stopping npcs - by Luis- - 09.11.2011, 23:37
Re: Stopping npcs - by Luis- - 10.11.2011, 07:36
Re: Stopping npcs - by MP2 - 10.11.2011, 07:39
Re: Stopping npcs - by Lorenc_ - 10.11.2011, 07:42
Re: Stopping npcs - by Luis- - 10.11.2011, 09:39
Re: Stopping npcs - by SiJ - 10.11.2011, 09:44
Re: Stopping npcs - by Lorenc_ - 10.11.2011, 09:46
Re: Stopping npcs - by Luis- - 11.11.2011, 17:56
Re: Stopping npcs - by Lorenc_ - 11.11.2011, 23:41
Re: Stopping npcs - by Luis- - 12.11.2011, 23:51

Forum Jump:


Users browsing this thread: 1 Guest(s)