Ok guys I need help with a mission I am working on. ***At several locations I have triggers set up when Blufor walks into the area a flare will pop up. ***I am VERY new to scripting so I am afraid I need it spelled out for me on how to do it. ***I searched the internet and found a Flare Trap scrip that was used with OFP, but I am unable to get it to work in ArmA. ***I have the flaretrap.sqs in my mission folder and have the correct line inserted into the on activation line of the trigger...but everytime I enter the area nothing happens. ***Any help would be greatly appreciated. ***I am posting below the script I found on the net.
; ************************************************** ********************
; **** Shoots a flare up when a trigger is activated.
; ****
; **** 2 parameters needed:
; **** 1. Trigger trap is attached to. (Object)
; **** 2. Color of flare. ("WHITE", "RED", "GREEN", "YELLOW") (String)
; ****
; **** Example how to use:
; **** TRIGGER:
; **** Radius: 50
; **** Activation: EAST + PRESENT + REPEATEDLY
; **** On Activation: [this, "GREEN"] Exec "FlareTrap.sqs"
; ****
; **** By
; ************************************************** ********************
; Get the parameters given
_trigger = _this Select 0
_color = _this Select 1
; Get the position of the trigger
_posTrigger = GetPos _trigger
; Create the position for the flare to drop (Z + 150 m)
_x = _posTrigger Select 0
_y = _posTrigger Select 1
_z = (_posTrigger Select 2) + 150
_posFlare = [_x, _y, _z]
; Create the flare
?(_color == "WHITE"): _color = ""
_type = "Flare" + _color
_flare = _type CamCreate _posFlare
CamDestroy _flare
Exit
HOME 
Reply With Quote