Constant gate moving
#2

Код:
new mygate_status;

OnFilterScriptInit:

mygate = CreateObject(19277,-50.402030,1829.453125,19.898818,0.0000000,0.0000000,0.0000000);
MoveObject(mygate, -50.402030,1829.453125,19.898818, 2.5);
mygate_status = 1;

public OnObjectMoved(objectid)
{
	if(objectid == mygate) 
	{	
		if(mygate_status == 1)
		{ 
			MoveObject(mygate, -50.402030, 1829.45312, 28.398838, 2.5);
			mygate_status = 0;
		}
		else
		{
			MoveObject(mygate, -50.402030,1829.453125,19.898818, 2.5);
			mygate_status = 1;
		}
	}
	return 1;
}
Reply


Messages In This Thread
Constant gate moving - by Mughees - 26.04.2017, 17:48
Re: Constant gate moving - by raydx - 27.04.2017, 07:54
Re: Constant gate moving - by Mughees - 27.04.2017, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)