OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Mr.Peanut on 11 Sep 2008, 17:36:24
-
I could have sworn I read somwhere on the Biki that when players respawn you do not need to re-add any eventhandlers to them. I think it must only be a unit's init eventhandler. Does anyone know from experience?
-
Event handlers are persistent (i.e. they stay attached to a unit, even after it dies and respawns).
under multiplayer
-
@i0n0s: You can't respawn in SP, so it isn't an issue.
When a player respawns, he definitely keeps all event handlers applied to a previous incarnation via addEventHandler (he obviously still has any hard-coded event handlers applied in config too). The init isn't run again though, but XEH 1.8 intruduced a "run init again on respawn" flag. Not sure about respawning vehicles, but only because I've never tried it.
-
ionos,
Please supply the link to that quote. :yes:
-
http://community.bistudio.com/wiki/addEventHandler (http://community.bistudio.com/wiki/addEventHandler)
-
Thanks. Kept looking at that page and missing that one line of text. Old age you know...