You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ actor_before_death script call back (set in bind_stalker). This will allow scripts to process actor condition and prevent actor's death or kill him if desired. IMPORTANT: if you wish to kill actor you need to call db.actor:kill(level:object_by_id(whoID), true) in actor_before_death callback, to ensure all objects are properly destroyed.
+ set_health_ex script method for game_object. This will directly set entity's health instead of going through health property which operates on delta
-- IMPORTANT: if you wish to kill actor you need to call db.actor:kill(level:object_by_id(whoID), true) in actor_before_death callback, to ensure all objects are properly destroyed.
204
+
function actor_binder:on_actor_before_death(whoID)
//AVO: allow scripts to process actor condition and prevent actor's death or kill him if desired.
258
+
//IMPORTANT: if you wish to kill actor you need to call db.actor:kill(level:object_by_id(whoID), true) in actor_before_death callback, to ensure all objects are properly destroyed
259
+
// this will bypass below if block and go to normal KillEntity routine.
260
+
if (IsGameTypeSingle() && this->ID() == Actor()->ID() && bypass_actor_check != true)
0 commit comments