ctrlRemoveEventHandler – Talk

From Bohemia Interactive Community
Revision as of 09:23, 9 February 2016 by Killzone Kid (talk | contribs) (→‎May be related: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

May be related

Posted on February 9, 2016 - 01:54 (UTC)
Pierre MGI
A "remove" command doesn't delete the attached handle (_id). This handle (_id) stays as a variable (local or global in its name space). If you need to erase all traces of a CtrlEH, use this command then your_handle = nil; In this way, you can toggle on/off your EH's, with add/remove, without weird result due to a forgotten handle.