29.07.2010, 22:05
How would I make it so that when a gate closes, the other one opens?
public OnObjectMoved()
{
//code here
}
public OnObjectMoved(playerid,objectid)
{
if(objectid==gate1 || objectid==gate2)
{
SetTimerEx("move",20000,1,"i",objectid);
}
return 1;
}
forward move(objectid);
public move(objectid)
{
if(objectid==gate1)
{
MoveObject(gate2,blah blah blah);
}
else if(objectid=gate2)
{
MoveObject(gate1, blah blah blah);
}
return 1;
}