Getactorvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
'''getactorvar'''[<[[sprite id]]>].<[[gamevar|gamevar1]]> <[[gamevar|gamevar2]]>
'''getactorvar'''[<[[sprite id]]>].<[[gamevar|gamevar1]]> <[[gamevar|gamevar2]]>


Use getactorvar to set the value of the [[gamevar]] <[[gamevar|gamevar2]]> to the value of <[[gamevar|gamevar1]]> within the [[actor]] determined by the [[gamevar]] <[[sprite id]]>. See [[Actor Member Functions]]. <[[gamevar|gamevar1]]> must be defined as a "per-actor-variable" for this to work.
Use getactorvar to set the value of the [[gamevar]] <[[gamevar|gamevar2]]> to the value of <[[gamevar|gamevar1]]> within the [[actor]] determined by the [[gamevar]] <[[sprite id]]>. See [[Actor Member Functions]]. <[[gamevar|gamevar1]]> must be defined as a per-actor variable.


[[Category:EDuke commands]]
[[Category:EDuke commands]]
[[Category:Sprite manipulation]]
[[Category:Sprite manipulation]]
[[Category:Gamevar manipulation]]
[[Category:Gamevar manipulation]]

Revision as of 19:18, 7 January 2011

getactorvar[<sprite id>].<gamevar1> <gamevar2>

Use getactorvar to set the value of the gamevar <gamevar2> to the value of <gamevar1> within the actor determined by the gamevar <sprite id>. See Actor Member Functions. <gamevar1> must be defined as a per-actor variable.