
09-01-2002, 12:45 AM
heres a simple script example that should help you out ...
first call it by a thread somewhere in the beginning of your map.scr file...
thread moving_object
moving_object:
$movingobject time 3 //sets the time in seconds object will move the distance scripted
$object_ trigger waittill trigger
$movingobject moveup 64
$movingobject waitmove // this line waits for the object to complete the move before moving on to the next line
$object_ trigger waittill trigger // after it has moved up, now wait for the same trigger to be pressed again
$movingobject movedown 64 // move it down
$movingobject waitmove // wait for the move again
thread moving_object // repeats the process in an endless loop
hope that helps ya
-g3mini
|