Each chopper in my mission runs the following script
What i have been trying to do, is add lines to the script, checking the damage of the choppers, and if it is a certain amount, have the script then activate the "tail-rotor fail script by Vektorboson"
Notice the lines in various colours, these are what i have been trying to get to work
Initially i want to have the rotor failure script activated if the chopper that runs the following script has dammage of between 0.2 and 0.4
Any help would be greatly appreciated
;Nam Chopper respawn limited weaponry
~1
?!(local Server): exit
_vcl = _this select 0
_class = _this select 1
_rspn = _this select 2
_azimut = _this select 3
#start0
_vcl lock False
~5
?(getdammage _vcl > .01):goto "Lost"
~2
?(count crew _vcl > 0):goto "start1"
~2
goto "start0"
;*************************************************************
#start1
?!(Alive _vcl):goto "end"
?(count crew _vcl == 0):goto "Lost"
~5
goto "start1"
;*************************************************************
#Lost
~1
?(getdammage _veh >= 0.2) and (getdammage _veh <= 0.4):goto "rotorfail"
?!(Alive _vcl):goto "end"
~15
?!(Alive _vcl):goto "end"
~15
?!(Alive _vcl):goto "end"
?(count crew _vcl == 0):goto "end"
?(count crew _vcl > 0):goto "start1"
goto "start0"
;*************************************************************
goto "end"
#end
~30
_vcl setfuel 0
~1
_vcl setdammage 1
deleteVehicle _vcl
~10
_vcl = _class createVehicle getpos _rspn
_vcl setdir _azimut
_vcl lock False
?(_class == "sebuh_1gs"): _vcl removeweapon "sebuh1zuni48"
?(_class == "sebah_1j"): _vcl removeweapon "sebah1zuni38"
?(_class == "sebuh_1guns"): _vcl removeweapon "sebah1zuni14"
?(_class == "sebah_1a"): _vcl removeweapon "sebah1zuni76"
goto "start0"
#rotorfail
Hint "Tail rotor dead"
exec "tailrotor.sqs"
;; _vcl exec "tailrotor.sqs" (tried this too)
if (Player in thisList) then { vehicleRadio [format["Mayday!\n Mayday\n"We lost the tail rotor\nWe are going down",name (thisList select 0)],"Plain down"] something wrong with this too
goto "end"
and i cant get it to work
I have tried allsorts of lines, but i am afraid my scripting skills aint that good