Tip #51: What to do if your Plugin won’t Trigger or Debug when Registered on SetState

If you register a plugin on SetState, most of the time you can’t get it to trigger or debug.  Register it instead on the (technically deprecated) SetStateDynamicEntity message. It should work fine. Note: Instead of “Target”, the entity in the context for the entity being activated or deactivated, the new context input parameter will be […]