Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

setType

Description

Set the animation playback type this animation should use. Animation types are defined on the animation library.

tdas.ANIMATION_TYPES = { -- bitmask
	PLAYONCE = 1, 
	LOOP = 2, -- PLAYONCE and LOOP are mutually exclusive
	RANDOMFRAME = 4
}

Arguments

1 number bitmask

a bitmask of the animation types to use.

Example

animObjInstance:setType(tdas.ANIMATION_TYPES.PLAYONCE + tdas.ANIMATION_TYPES.RANDOM_FRAME)