25.10.2010, 19:20
You could use a 'timer function' that uses variables to know which walls he should move.
You need to be a bit experienced with timers though.
Little example:
forward ObjectTimer();
public ObjectTimer()
{
MoveObject(objectid, Float:X,Float:Y,Float:Z, Moving Speed);
return 1;
}
public OnGameModeInit()
{
SetTimer("ObjectTimer, 5000, true);
return 1;
}
This is just a minor example how to move an object in 5 seconds.
You can use 'variables' ( new ...; ) to let the script figure out where the object should move to.
You need to be a bit experienced with timers though.
Little example:
forward ObjectTimer();
public ObjectTimer()
{
MoveObject(objectid, Float:X,Float:Y,Float:Z, Moving Speed);
return 1;
}
public OnGameModeInit()
{
SetTimer("ObjectTimer, 5000, true);
return 1;
}
This is just a minor example how to move an object in 5 seconds.
You can use 'variables' ( new ...; ) to let the script figure out where the object should move to.