OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hellcow on 08 Nov 2004, 05:16:20

Title: Respawning Targets?
Post by: Hellcow on 08 Nov 2004, 05:16:20
Ok, I have those little Fall down Targets, ( after so many shots they fall over)
and i want them to Respawn by Radio Command.
I have about 20 of them, and i would like them to all respawn on the same command.

Any help is appreciated.
Thanks
-Hellcow
Title: Re:Respawning Targets?
Post by: nominesine on 08 Nov 2004, 10:20:42
Name your targets target1, target2, target3, etc. Make a repeating Radio Alpha trigger (0-0-1)

Condition: This
Activation: target 1 setDamage 0; target2 setDamage 0; target3 setDamage 0

When the player fires the radio trigger (with the numerical keyboard 0-0-1) the targets will be as good as new again.