Getactorvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
LordMisfit (talk | contribs)
mNo edit summary
LordMisfit (talk | contribs)
mNo 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]]. <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" for this to work.


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

Revision as of 18:24, 2 October 2006

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" for this to work.