How to move object when player is in point
#5

Basic exemple (For OPEN):

Script top:
pawn Код:
forward MoveObj();
OnFilterScriptInit/OnGameModeInit:
pawn Код:
SetTimer("MoveObj",TIME_HERE,true);
Elsewhere:
pawn Код:
public MoveObj()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerToPoint(radi, i, POS:X, POS:Y, POS:Z))
{
MoveObject(objectID, X,Y,Z,Speed);
}
return 1;
}
}
Reply


Messages In This Thread
How to move object when player is in point - by hardstop - 08.02.2010, 19:57
Re: How to move object when player is in point - by Grim_ - 08.02.2010, 20:04
Re: How to move object when player is in point - by hardstop - 08.02.2010, 20:26
Re: How to move object when player is in point - by IcyBlight - 08.02.2010, 21:06
Re: How to move object when player is in point - by LuxurioN™ - 08.02.2010, 21:26
Re: How to move object when player is in point - by akis_tze - 08.02.2010, 21:37

Forum Jump:


Users browsing this thread: 3 Guest(s)