Moving script_objects

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
matt_moh
Sergeant
Posts: 65
Joined: Sat Feb 08, 2003 12:04 am

Moving script_objects

Post 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?
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post by Yarik »

PUT THIS IN THE SCRIPTING SECTION.
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Post Reply