Getactorvar: Difference between revisions
Jump to navigation
Jump to search
Hunter byte (talk | contribs) mNo 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" for this to work. |