
Originally Posted by
[b
Quote[/b] ]_Object = _this select 0
_CenterObject = _this select 1
_radius = _this select 2
_freq = _this select 3
_script = _this select 4
_vektor = _this select 5
_life = _this select 6
_Killchopper = this select 7
setdammage 1.0 = _die
#Update
~_freq
? (_Object Distance _CenterObject) <= _radius : goto "InZone"
goto "Update"
#InZone
_vektor exec _script
? (_life == "LOOP") : goto "Update"
! (alive _Object) : goto "KillChopper"
; _script is only a text propt (print.sqs) that says "In Zone!"
#KillChopper
_Killchopper _die
exit
; Init field:
; [Player, CenterObject, 100, 1, "print.sqs", ["In Zone!"], "LOOP", DeadChopper] exec "inzone.sqs"