movement speed

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

movement speed

Post by MasterMind »

How do you change the speed that an object moves??
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
GARRAPIGNADO
Corporal
Posts: 49
Joined: Mon Aug 09, 2004 5:43 pm
Contact:

Post 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 :D
CLAN LA COMPAÑIA (ESPAÑA)
www.clanlacompania.com

Image

MAPPING SECTION ;)
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post 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.
When I am king, you will be first against the wall~
Image
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

Who taught you that GARRAPIGNADO?
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post 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 :oops:
Jesus built us a bridge, with 2 boards and 3 nails.
User avatar
GARRAPIGNADO
Corporal
Posts: 49
Joined: Mon Aug 09, 2004 5:43 pm
Contact:

Post 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 :D
CLAN LA COMPAÑIA (ESPAÑA)
www.clanlacompania.com

Image

MAPPING SECTION ;)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

speed time

Post 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.
Tom Trude,

Image
User avatar
MasterMind
Major
Posts: 316
Joined: Thu Jul 15, 2004 12:10 am

Post by MasterMind »

Thanks, I didnt know that :D
Jesus built us a bridge, with 2 boards and 3 nails.
Post Reply