Page 1 of 1

Moving script_objects

Posted: Tue Mar 18, 2003 8:10 pm
by matt_moh
If I wanted to move a scrip_object or a script_model from point a to point b and then to point c with my script, how would I be able to do that? also, is there any way to change it's speed?

Posted: Tue Mar 18, 2003 8:11 pm
by Yarik
PUT THIS IN THE SCRIPTING SECTION.

Posted: Tue Mar 18, 2003 8:27 pm
by jv_map
Yarik wrote:PUT THIS IN THE SCRIPTING SECTION.
Good point 8).

Type the following in your script (assuming your object is called 'object'):

Code: Select all

$object moveto $a // or $a.origin, both allowed
$object speed 5 // --> set speed (units / s) here!
$object waitmove // move and wait till move done
// go move to b you lazy object
$object moveto $b
// you may set a different speed here!
$object waitmove
Helps?

Note: Instead of typing 'speed', you may also use 'time' instead which determines the travel time.