My caffiene deprived brain is missing something. The script as of now will work once, then after a respawn the speedloop doesn't run, but the turbo action does. And the challengers still have all their wep and ammo cargo.
;;BEGIN vrs.sqs
;;By KaRRiLLioN
;;VehicleType Loop by Sefe
;;Original script by Backoff
;;Updated for 1.75 by Jaeger Neo
;;IMPORTANT: ADD A GAMELOGIC NAMED Server
;;to the mission to prevent multispawn
_vcl = _this select 0
_vcl AddAction ["Turbo On","RTS3-VCL-TurboOn.sqs"]
?!(local Server): Goto "end"
_respawndelay = 10
_dir=Getdir _vcl
_position=Getpos _vcl
_Vehicles=[]
_WTrucks=["Truck5tOpen","Truck5tRepair","Truck5tReammo","Truck5tRefuel","Truck5t"]
_ETrucks=["UralRepair","UralReammo","UralReFuel","Ural"]
_CivTrucks=["TruckV3SGCivil","TruckV3SGRefuel","TruckV3SGRepair","TruckV3SGReammo","Bus","TruckV3SG"]
_Jeeps=["Buggy2GLG","JeepPolice"]
_Cars=["Challenger","basklr250dese"]
_Helos=["bas_mh6"]
_Planes=["Cessna","A10LGB","A10","SU25"]
_WArmor=["M1Abrams","M60","Bradley","M113Ambul","Vulcan","M2StaticMGE","M2StaticMG","M113","BoatW"]
_GArmor=["T80Res","T72Res"]
_EArmor=["T80","T72","BMP2","BMPAmbul","BMP","BRDM","BoatE","ZSU","T55G"]
_Other=["Mash"]
_Vehicles=_WTrucks+_ETrucks+_CivTrucks+_Jeeps+_Cars+_Helos+_Planes+_WArmor+_GArmor+_EArmor+_Other
_i = 0
#Loop
? (_i > (Count _Vehicles)) : Goto "speedloop"
_VehicleType = _Vehicles Select _i
_VehicleTypeDoesMatch = ((_VehicleType CountType _this) == 1)
? _VehicleTypeDoesMatch : _type = _VehicleType
? _VehicleTypeDoesMatch : Goto "speedloop"
_i = _i + 1
Goto "Loop"
#speedloop
?!(canmove _vcl): goto "start"
(driver _vcl) sidechat format ["speed:%1 ----altitude:%2",speed _vcl, getpos _vcl select 2]
~.3
;;criteria for starting jump distance is 1 meter as height
?((getpos _vcl select 2) < 1) : goto "speedloop"
player sidechat "measuring jump distance"
_startgl = "Logic" camcreate getpos _vcl
@ ((getpos _vcl select 2) < 1)
_dx = (getpos _startgl select 0) - (getpos _vcl select 0)
_dy = (getpos _startgl select 1) - (getpos _vcl select 1)
_dist = sqrt ((_dx * _dx) + (_dy * _dy));
deletevehicle _startgl
(driver _vcl) globalchat format ["%2 jumped %1 meters!!!",_dist, name driver _vcl]
;;~4
#start
~2
@!(Canmove _vcl)
~_respawndelay
deleteVehicle _vcl
_vcl = _type createVehicle _position
_vcl setdir _dir
#Skip
#CustomArming
?(_type == "basklr250dese") OR (_type == "Buggy2GLG") OR (_type == "Mini") : Goto "Turbo"
?(_type == "Bus") OR (_type == "Kolo") OR (_type == "Rapid") OR (_type == "Tractor") : Goto "Turbo"
?(_type == "Challenger") : goto "challenger"
Goto "start"
#challenger
{_vcl removeMagazine _x} forEach (magazines _vcl)
{_vcl removeWeapon _x} forEach (weapons _vcl)
goto "Turbo"
#Turbo
@!AddingTurbo
TurboCar = _vcl
Publicvariable "TurboCar"
Goto "start"
#end
Exit
;;END vrs.sqs