Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

abort

Description

Called when the action is aborted.

Arguments

1 developer employee

the employee that was performing this action.

Example

-- 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