The delHpDownTrigger native AI script function is used to unregister a previously registered HP decrease trigger. The same threshold and trigger handler used when registering the trigger must be passed to this function. If several triggers were defined with the same parameters, only one will be removed.
()delHpDownTrigger(threshold: f, user_event_n: f) // delHpDownTrigger_ff_
()delHpDownTrigger(threshold: f, callback: s) // delHpDownTrigger_fs_
()delHpDownTrigger(0.5, 5);
This example code unregisters a trigger that was registered to trigger user event 5 when the HP level of a bot crossed 0.5.
()delHpDownTrigger(0.5, "onHPDecrease");
This example code unregisters a trigger that was registered to call the "onHPDecrease" script function when the HP level of a bot crossed 0.5.