Gate problems
#1

Код:
I have a gate that opens/move when i go near it but then it doesnt close
Heres's script:

new gate;
forward InitPos();

public InitPos()
{
MoveObject(gate, 1033.4000200, 1180.6999500, 9.7000000, 4.0);
}

public OnPlayerUpdate(playerid)
{

if(IsPlayerInRangeOfPoint(playerid, 6.0,1027.4000200,1180.0999800,9.7000000))
{
MoveObject(gate, 1033.4000200, 1180.6999500, 9.7000000, 4.0);
SetTimer("InitPos",1000,true);
}
return 1;
}

gate = CreateObject(969,1027.4000200,1180.0999800,9.7000000,0.0000000,0.0000000,0.0000000); //object(electricgate) (1)
Reply


Messages In This Thread
Gate problems - by Branzy - 29.03.2013, 12:33
Re: Gate problems - by MattyG - 29.03.2013, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)