Page 1 of 1
movement speed
Posted: Fri Aug 13, 2004 3:55 pm
by MasterMind
How do you change the speed that an object moves??
Posted: Fri Aug 13, 2004 8:41 pm
by GARRAPIGNADO
I was looking for it, and I think that this could help you:
If you have an object targetnamed "moving":
$moving time .1
where .1 is the time the object will spend to move (0.1 seconds here).
Could help.
If its a vehicle, for example, give key/value: speed 500 (for example). I dont know how fast is this.
Dont know more, jjejeje

Posted: Fri Aug 13, 2004 8:48 pm
by Splaetos
'time' is one of the modifiers for movement.
$yourwhatever time 3
$yourwhatever damage 100
$yourwhatever moveBackward 100
// these are preparatory lines, defining movement, direction speed whatever...
$yourwhatever waitmove
time is how logn the totatl movement takes in seconds(I think)
so speed is determined by distance measured against time.
Posted: Fri Aug 13, 2004 8:49 pm
by MasterMind
Who taught you that GARRAPIGNADO?
Posted: Fri Aug 13, 2004 8:53 pm
by MasterMind
I found there was an error in my script, I had the wrong targetname, sorry. At least I found out what was wrong with my script. Sorry to bother oy guys

Posted: Fri Aug 13, 2004 9:21 pm
by GARRAPIGNADO
No one taught me, jejejee (taught is the past of teach? My English is not as good, jejejeje).
I used the "search". I tooks me almost an hour, but the problem is solved

speed time
Posted: Fri Aug 13, 2004 9:53 pm
by tltrude
They are interchangeable, but "speed" will not work for rotating objects.
time ( Float travel_time ) Sets the travel time in seconds.
speed ( Float speed ) Sets the speed in units per second.
Posted: Fri Aug 13, 2004 10:18 pm
by MasterMind
Thanks, I didnt know that
