Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

onPathInvalidated

Description

Called when cached paths are invalidated. Return true to indicate that the action is still valid.

Returns

1 bool

whether the action is still valid.

Example

-- taken from game/developer/actions.lua


function useWaterDispenser:onPathInvalidated()
	return self.targetObject:isValidForInteraction() -- make sure the object is still valid for interaction

end