The Black Wyrm's Lair - Forums

Mod development resources & discussion => Tutorials, hints & tips => Topic started by: nullset on November 19, 2015, 07:14:59 PM

Title: ClearAllActions()
Post by: nullset on November 19, 2015, 07:14:59 PM
The descriptions I have found do not make it clear whether this clears action lists by performing all actions in the lists or whether it clears the lists by dumping outstanding actions. It is of some interest to me as I have had some actions getting lost on me for what seem to be timing problems, and I am looking for a general solution.
Title: ClearAllActions()
Post by: Baronius on November 22, 2015, 07:45:13 PM
It drops actions.

Quotewhether this clears action lists by performing all actions in the lists

You probably mean that actions would be performed such that only their results (final consequences) are applied*. Games don't do this normally, because it usually doesn't make sense and may be complex to implement.

* Otherwise we would talk about normal processing of the queue, i.e. you wouldn't call clear() or anything on the queue.
Title: ClearAllActions()
Post by: nullset on November 28, 2015, 01:14:39 PM
Thank you. That rules that out.