Arma 3
Not enough ratings
Vehicle Speed Limit & Vehicle Unflip showcase
   
Award
Favorite
Favorited
Unfavorite
Data Type: Scenario
Scenario Gameplay: Singleplayer
Scenario Map: Malden 2035
DLC: Malden
Meta: Dependency
File Size
Posted
Updated
1.327 MB
11 May, 2018 @ 6:11am
31 Oct, 2018 @ 2:36am
3 Change Notes ( view )

Subscribe to download
Vehicle Speed Limit & Vehicle Unflip showcase

Description
This is a simple demo/showcase mission for my Vehicle Speed Limit and Vehicle Unflip scripts.

Vehicle Unflip Script:
I felt like the usual vehicle unflip scripts, using setVectorUp are not enough so I decided to create a script that pushes vehicles back on their wheels (or tracks), using the implemented physics of Arma3.

Speed Limit Script:

IMPORTANT NOTE:
With Arma3 v2.06 and above please use the command setCruiseControl[community.bistudio.com] instead!
vehicle player setCruiseControl [50, false]; //Limits speed to 50km/h
vehicle player setCruiseControl [0, false]; //Removes speed limit.
This command also does not have to be executed onEachFrame so it can be used in triggers.

I saw a post in the Bohemia Forums, which led me to experiment with it and create a working speed limit script, that can be easily implemented into any mission, by simply placing a few markers and spawning the script on the client.
It supports a custom speed limit and the metric (km/h) by default, as well as imperial (mph).
Although I didn't test it in a MP environment and repeatedly (onEachFrame) executing the addForce command (which has a global effect) might lead to some issues.
Please report back if you use this in a MP mission and experience any issues.
It's safe to use in SP missions and is extensively tested with all kind of land vehicles (test it out by yourself in the showcase mission).

You are free to edit these scripts and/or use them in your mission(s), as long as you give credit to the original author, namely KiloSwiss.

For more information about the red markers on the airfield, open the mission in the editor.
To do so, grab the *.pbo from the "...\Steam\userdata\<YourSteamID>\107410\remote\" folder and extract it into your "...\Documents\Arma 3 - Other Profiles\<YourUserName>\missions\" folder.

18 Comments
Kilo  [author] 19 Apr, 2022 @ 9:10am 
The speed limiter only works for ground vehicles.

However I suggest you use setCruiseControl instead:
https://community.bistudio.com/wiki/setCruiseControl
Marlu 18 Apr, 2022 @ 5:00am 
Is the vehicle limit speed thing meant to work on planes / helicopters? In the scenario it isn't.
Carlodown 18 Jul, 2021 @ 5:50am 
Is there a way to set this to a specific vehicle only?
Slayer347 19 Apr, 2020 @ 4:51am 
I haven't been able to figure out how to use this. Could someone walk me through adding a speed limit zone and making work?
ASVAB Waiver 17 Dec, 2019 @ 6:07pm 
Novice scripter here. I've downloaded your mod as I read online that limiting the speed of the lead vehicle of a convoy in a mission I'm writing will fix the bug that causes the rest of the convoy to stay still forever when passing through towns, and I've hit a wall because I cannot find any resources online on how to actually use your script! I've got it downloaded, now what! Any help would be great, thanks much.
Kilo  [author] 10 Dec, 2019 @ 9:42am 
See the previous two comments before yours.
Lunatic 9 Dec, 2019 @ 6:20pm 
Hi ~ developer ..

I am interested in your unflip.

Need help to add mp to server

Please accept the addition of a friend!
Kilo  [author] 7 Apr, 2019 @ 4:53am 
Hey @ZUNDER if you place this code into the onPlayerRespawn.sqf , then the " if ( hasInterface ) " is not needed and " waitUntil { !isNull player }; " should also be obsolete.
🌴 Zunder 🌴 7 Apr, 2019 @ 2:16am 
If someone want to use this script (unflipVehicle) in multiplayer mission, here is the trick (maybe it's obvious but not for a noob like me) :
You have to create a text file in the root of your mission called : onPlayerRespawn.sqf
and past this inside :

if ( hasInterface ) then
{
waitUntil { !isNull player };

// Spawn the Vehicle Unflip Script Loop.
[] spawn KSLOOP_fnc_unflipVehicleAddAction;
};

and it work like a charm :)
Kilo  [author] 25 Mar, 2019 @ 2:29pm 
The vehicle unflip script stops working when the player is dead.
It has to be spawned again on player respawn.