How to move object when player is in point - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to move object when player is in point (
/showthread.php?tid=126490)
How to move object when player is in point -
hardstop - 08.02.2010
How to move object when player is in point ?
Re: How to move object when player is in point -
Grim_ - 08.02.2010
Check the players position, when they are at where you want them, use MoveObject.
Re: How to move object when player is in point -
hardstop - 08.02.2010
I want to make IF PLAYER IS IN CERTAIN POINT !!!!!! THEN !!!!! Object moves
Re: How to move object when player is in point -
IcyBlight - 08.02.2010
He just told you how. Use a checkpoint or a PlayerToPoint (I think either), when they are in it or close to it, use MoveObject.
Re: How to move object when player is in point -
LuxurioN™ - 08.02.2010
Basic exemple (For OPEN):
Script top:
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;
}
}
Re: How to move object when player is in point -
akis_tze - 08.02.2010
the tutorial with auto gates maybe help you
https://sampwiki.blast.hk/wiki/Automatic_Gates