Called when this action is begun.
Called when this action is begun.
1 developer employee
the employee that is now performing this action.
-- taken from game/developer/actions.lua
function useWaterDispenser:begin(target)
local randomIndex = math.random(1, #self.validObjects)
local randomObject = self.validObjects[randomIndex]
self.employee = target
self.employeeAvatar = target:getAvatar()
self.targetObject = randomObject
randomObject:setInteractionTarget(target)
table.clearArray(self.validObjects)
end