Characters (DS)

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 18:50, 18 January 2015 by AFRLme (talk) (Created page with "This page consists of an overview of the fields & tables belonging to the '''character''' data structure table. == CharacterActions == A list of actions belonging to the spec...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page consists of an overview of the fields & tables belonging to the character data structure table.

CharacterActions

A list of actions belonging to the specified character. Requires iteration.

local c_act = getObject("Characters[Tom]"):getLinks(VCharacterActions) -- store actions table in c_act

for i = 1, #c_act do -- for index 1 to c_act total value do...
 print( c_act[i] ) -- will print the action associated with the current index value to the log
end