TestOnDestroy.fsmHello,
I am currently working on an user library and I needed a script to be executed when an object of my library is deleted. Therefore I have added an OnDestroy node in the behaviour/eventfunctions node. Although it works fine in the 23.1 version, in latest version (23.2.1) it gives me an error. This error occurs because the code is executed two times instead of once and the second time it can not access the nodes because the object related is already destroyed. I make some tests to confirm that behaviour by just adding a message in OnDestroy and it was executed two times everytime I deleted an instance of the object. I attached a small model showing that exemple. I am pretty sure it is not a normal behaviour.
Regards!
TestOnDestroy.fsm