heres an interesting one...
so i have a training mission and i want to create a sniper range... with a difference...
now - what i want is 6 targets (Target E) to randomly pop up from behind sandbags and then pop down again after 2 secs - there should be a gap between them popping up of 2 secs.
now - i have made a vague start, with help from Sefe before - but the version i have now keeps on saying there is an error - it says the bit where the target is moved to the posistion is type number, expected array
;Thanks to Sefe for major help with this script :o)
_PopUpUnits = [sniper1, sniper2, sniper3, sniper4, sniper5, sniper6]
_UnitCoordinates = [10357.09,12685.92,0.05], [10352.26,12695.23,0.05], [10352.42,12679.24,0.05], [10356.93,12689.01,0.05], [10354.49,12682.38,0.05], [10354.50,12692.35,0.05]
#Loop
? (Count _PopUpUnits) == 0 : goto "Skip"
_UnitNumber = Random (Count _PopUpUnits)
? _UnitNumber >= (Count _PopUpUnits) : _UnitNumber = (Count _PopUpUnits) - 1
_CurrentUnit = _PopUpUnits Select _UnitNumber
_CurrentCoordinates = _UnitCoordinates Select _UnitNumber
_CurrentUnit setpos _CurrentCoordinates
~(1 + (Random 3))
if (not (Alive _CurrentUnit)) then {Hint "You have killed a target"; _PopUpUnits = _PopUpUnits - [_CurrentUnit]; _UnitCoordinates = _UnitCoordinates - [_CurrentCoordinates]}
_Currentunit setpos (getpos gamelogic1)
~(1 + (Random 5))
Goto "Loop"
#Skip
Hint "You have killed the last target"
so - some help on that bit...
now, also, instead of it just appearing - could it be possible to make the targets move upwards by changing the height - it should be quite rapid, lasting about 1 sec.
hope you can help.
cheers.