Moving script_objects
Moderator: Moderators
Moving script_objects
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?
Good point 8).Yarik wrote:PUT THIS IN THE SCRIPTING SECTION.
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
Note: Instead of typing 'speed', you may also use 'time' instead which determines the travel time.

