Called when the action is aborted.
Called when the action is aborted.
1 developer employee
the employee that was performing this action.
-- taken from game/developer/actions.lua function useWaterDispenser:abort(target) useWaterDispenser.baseClass.abort(self, target) self.employee:setWalkPath(nil) self.employee = nil self.targetObject:setInteractionTarget(nil) self.targetObject = nil self:removeEventHandler() end function useWaterDispenser:removeEventHandler() events:removeFunctionReceiver(self, studio.expansion.EVENTS.REMOVED_OBJECT) end