timed_event_p_proc never called

SpellTrap

First time out of the vault
In FO2, what would cause a critter's timed_event_p_proc to never run? This does not happen to every critter on the map; just three that have a certain script assigned.
 
timed_event_p_proc will only run when its called from some other proc in the same script (add_timer_event), or from another object's script. And it will only run once unless it issues another add_timer_event itself (to make a loop). So it may be that whatever/whoever was making that call is no longer ....

Also, sometimes the calling procedure or object sends a fixed parameter (number) to distingush its purpose from other purposes (the timer may be used for multiple actions). So if there is code that tests the fixed param value, check to see that what its checking makes sense.

One more thing, there is a flush_add_timer_event that can be used instead of the plain add_timer_event. I see no docs for this, but I presume it does a timer reset or clear. It can probably be used to override something else that is in the timer event "stack". Is it possible that more than one object is trying to call the timer on those problematic critters? If so maybe a flush_add_timer_event will resolve a conflict.
 
Back
Top