# Thread: limit and set speed of a vehicle?

1. setVelocity accepts m/s, not Km/h.
setVelocity set INSTANTANEOUS (not CONSTANT) velocity of any movable object.

2. Originally Posted by [b
Quote[/b] ]So.. setvelocity doesnt really work?
No, not with infantry. Unless, as stated above, the guy is not touching the ground. Anything else is ok.

Most of the time, you probably don&#39;t need it with infantry. As they "should" all move at the same speed, plus I think you have more control over a units speed using waypoint settings and combat mode (safe,combat e.t.c), than you do with different types of vehicles?

3. m/s = ? (meters per second?)

Im not interested in having infantry running around at a specified speed, even less if their running above ground level, maybe above water . Just curious about setvelocity and its use with vehicles, the velocity settings in WP&#39;s seem more adequate and suficient. Thanks for your replies .

4. You can set the speed of a vehicle using setvelocity in kmh.

Formula somewheres in these forums by the uber Denoir eons ago

5. can sombody help me how i can let a unit sit on a chair and how i can let a unit sit on the ground in the mission

img]http://www.shooterplanet.de/Shooter-Archiv/Operation_Flashpoint/Operation_Flashpoint_Cover_CD_Front.jpg[/img]

6. lol nice pic

your answer somewheres in here http://www.flashpoint1985.com/cgi-bin....t=26723

7. hey tnx

8. do you now if a unit got a flag how to return it ti the flag pole

9. Originally Posted by (BraTTy @ July 01 2006,21:46)
You can set the speed of a vehicle using setvelocity in kmh.
The Speed command returns kmh, the velocity command returns m&#92;s.

The script I posted uses the Speed command to regulate the vehicles speed, the velocity command is used to reduce the speed when it exceeds the max speed in kmh, that you define.

Originally Posted by [b
Quote[/b] ]Formula somewheres in these forums by the uber Denoir eons ago
But if you want the formula for converting m&#92;s to kmh, just search with google, it&#39;s regular maths:

Originally Posted by [b
Quote[/b] ]1 kmh ; 0.2778 m·s (approximately)
So 5 kmh would be:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">5 * 0.2778 = 1.389 m&#92;s[/QUOTE]

But why add all those extra script commands and trigonometry? You only need to do that, when your forcing an object that can&#39;t move on it&#39;s own.

10. Originally Posted by (killerm @ July 02 2006,06:16)
do you now if a unit got a flag how to return it ti the flag pole
Could you stop raping this thread with off topic posts , i dont mean to be rude but you are asking for stuff that has been answered thousands of times already and can be easily found using the search feature. There is also a pinned thread with aswers to some of the most comun questions .

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•