Hi,
found this script in an old sniper-range mission (as far as I can remember it was made by Bremmer).
Tried this with OFP 1.96. Problem is, that it won't work.
Even the first two lines (which should hide the targets beneath the earth) don't do a damm thing.
Same with the moving targets down below.
Any ideas what's going wrong here?
Any help is welcome.
Thanks
Jens
--------------------------------------------------------------------------------
_targets = [tag_1,tag_2,tag_3,tag_4,tag_5,tag_6]
"_x setpos [getpos _x select 0, getpos _x select 1, -2]" foreach _targets
#select
? count _targets == 0 : Hint "All Targets destroyed"; exit
_random = random (count _targets)
_random = _random - _random % 1
_target = _targets select _random
_pos = getpos _target
_x = _pos select 0
_y = _pos select 1
_z = _pos select 2
_delta = 2
_increment = 0
#up
~0.01
_target setpos [_x,_y,_z + _increment]
_increment = _increment + 0.05
? getpos _target select 2 < _z + _delta : goto "up"
~(random 2) + 2
#down
~0.01
_target setpos [_x,_y,_z + _increment]
_increment = _increment - 0.05
? getpos _target select 2 > _z : goto "down"
? getdammage _target > 0.9 : _targets = _targets - [_target]
~(random 2) + 2
goto "select"