Automatically moving object
#3

Do you want them to move up once a player is near them?

Here's a code so when you approach the gate it goes up so you can pass.

pawn Код:
new object; // Save here your object

public OnPlayerUpdate(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 2.0, object)
{
MoveObject(object, /*coordinates*/); // Coordinates for gate UP
}
else
{
MoveObject(object, /*coordinates*/); // Coordinates for gate DOWN
}

}
Reply


Messages In This Thread
Automatically moving object - by P<3TS - 26.07.2012, 10:03
Re: Automatically moving object - by Matz - 26.07.2012, 10:06
Re: Automatically moving object - by Alexis1999 - 26.07.2012, 10:13
Re: Automatically moving object - by P<3TS - 26.07.2012, 10:21
Re: Automatically moving object - by Stigg - 26.07.2012, 10:22
Re: Automatically moving object - by P<3TS - 26.07.2012, 10:25
Re: Automatically moving object - by Vince - 26.07.2012, 10:40
Re: Automatically moving object - by P<3TS - 26.07.2012, 11:15
Re: Automatically moving object - by P<3TS - 26.07.2012, 13:13
Re: Automatically moving object - by P<3TS - 27.07.2012, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)