OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: duckwilliamson on 06 Oct 2003, 06:37:07

Title: event handlers ...
Post by: duckwilliamson on 06 Oct 2003, 06:37:07
Do eventhandlers stop running once a unit is dead? or are they still running in the background unaccessable?

I am wondering if it is necessary to use removeeventhandler when the unit dies or will this automatically be done ... (i need as many reductions on lag as possible)
Title: Re:event handlers ...
Post by: Chris Death on 06 Oct 2003, 15:52:54
Should be easy to find out;

add an eventhandler "hit" to an AI unit, activating a hint
message: "huh - somebody has hit me"

setdammage 1 this guy

go there and shoot him

See wether the message shows up or not  ;)

~S~ CD
Title: Re:event handlers ...
Post by: duckwilliamson on 07 Oct 2003, 05:03:17
ya well thats what i thought and i did try it ... the results were that the event stopped working once the unit was dead ... but what i was wondering was if the event was still technically running even if it didn't show that it was because the unit's variable dissolved since it was dead ... owell if anyone gets any proof that the events don't stop running plz email me at duckwilliamson@yahoo.com
-thx Chris for your input