The documentation demonstrates using Trigger()
like this:
this.Trigger(C3.Plugins.Sprite.Cnds.OnAnimFinished)
Your code uses Trigger()
incorrectly like this:
inst.Trigger(inst.conditions.OnDisconnect)
Conditions are not part of inst
. I'm not sure where you got that from!