addEventHandler

From Bohemia Interactive Community
Revision as of 23:16, 18 January 2021 by Lou Montana (talk | contribs) (Text replacement - " {2,}\}\}" to " }}")
Jump to navigation Jump to search

Template:Command

Posted on July 7, 2015 - 21:06 (UTC)
Killzone Kid
When using overridable EH, such as "InventoryOpened" and similar, where returning true allows to override default action, exitWith cannot be used to return value. So: if (whatever) exitWith {true}; false; Forget about it, will not work. Instead use: if (whatever) then {true} else {false}; 100% satisfaction guaranteed!