OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: TC on 24 Oct 2005, 13:44:17

Title: Respawn and "Foreachunit"
Post by: TC on 24 Oct 2005, 13:44:17
hello all

I am making a mission in which the player and his team face respawning enemies, using ajm's respawn script. In this mission, i have also used a bulletcam script and death cam script which has a random chance of being activated each time a unit fires or is killed.

my problem is trying to get the respawning unis to have the "killed" and "fired" event handlers in thier init fields, as obviously they dont have one. I have tried using "foreachunit in group this" on a trigger which covers the entire map, and is activated by any units repeatedly, so basically, anybody tht dies or fires on the map executes a script. But i cant get the respawning units to use the eventhandlers!!

Can anyone help?
Title: Re:Respawn and "Foreachunit"
Post by: Planck on 24 Oct 2005, 14:52:20
Duplicate topic.

One topic per question please TC.   ;)

All replies to  here (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=26126).

*Locking*

Planck