How to move object when player is in point
#1

How to move object when player is in point ?
Reply
#2

Check the players position, when they are at where you want them, use MoveObject.
Reply
#3

I want to make IF PLAYER IS IN CERTAIN POINT !!!!!! THEN !!!!! Object moves
Reply
#4

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.
Reply
#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
#6

the tutorial with auto gates maybe help you
https://sampwiki.blast.hk/wiki/Automatic_Gates
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)