[HELP] Continuos move object.
#6

you can change any of coordinates, time delays, ids and speeds

Код:
stock movingObject, movingObjectState;

public OnGameModeInit()
{
	movingObject = CreateObject( 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 );

	SetTimerEx( "moveObject", 1000, 1, "d", movingObject );
}

forward moveObject ( objectid );
public moveObject ( objectid )
{
	if ( movingObjectState )
	{
		movingObjectState = 0;
		MoveObject( objectid, 5.0, 5.0, 0.0, 1.0 );
	}
	else
	{
		movingObjectState = 1;
		MoveObject( objectid, 0.0, 0.0, 0.0, 1.0 );
	}
}
Reply


Messages In This Thread
[HELP] Continuos move object. - by Hot - 12.05.2009, 21:13
Re: [HELP] Continuos move object. - by JaYmE - 12.05.2009, 21:56
Re: [HELP] Continuos move object. - by Hot - 13.05.2009, 17:43
Re: [HELP] Continuos move object. - by Weirdosport - 13.05.2009, 17:49
Re: [HELP] Continuos move object. - by Hot - 13.05.2009, 18:02
Re: [HELP] Continuos move object. - by MX_Master - 13.05.2009, 19:43
Re: [HELP] Continuos move object. - by kaisersouse - 13.05.2009, 20:00
Re: [HELP] Continuos move object. - by Think - 13.05.2009, 20:40
Re: [HELP] Continuos move object. - by Kenny990 - 17.05.2009, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)