isBusy
isBusy: () -> booleanWhether any action the calling plugin queued has neither gone out nor been dropped. Each plugin sees only its own actions.
- Example
function plugin:onGameTick(_event: GameTick) -- Something this plugin queued has not gone out yet: queue nothing more. -- It does not show whether the last action worked; only game state does. if Actions.isBusy() then return end if player:currentHitpoints() < 20 then player:inventory():interact(FOOD, "Eat") end end