; **********************************************************************
; **** 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
; **** Â Â Â Name: Trap_1
; **** Â Â Â Activation: WEST + PRESENT + REPEATEDLY
; **** Â Â Â On Activation: [Trap_1, "GREEN"] Exec "FlareTrap.sqs"
; ****
; **** By CHenderMan@cableone.net
; **********************************************************************
; Get the parameters given
"Trap_1" = _this Select 0
"Green" = _this Select 1
; Get the position of the trigger
posTrap_1 = GetPos "Trap_1"
; Create the position for the flare to drop (Z + 150 m)
x = posTrap_1 Select 0
y = posTrap_1 Select 1
z = (posTrap_1 Select 2) + 150
posFlare = [x, y, z]
; Create the flare
?("FlareGreen" == "Green"): "Green" = ""
type = "FlareGreen" + "Green"
"FlareGreen" = FlareGreen CamCreate posFlare
CamDestroy "FlareGReen"
Exit
Can anyone tell me whats wrong with this script, because I've no idea what I've done wrong?