Element data: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category: | Each [[element]] that is loaded is able to have [[element data]] values attached to it. These are values that can be accessed using a keyword string and directly correspond to the element's attributes in the map file. [[Element data]] is a good way to store information you want associated with an element, for example you could use it to associate a score with a player, or a team with a vehicle. | ||
==Relevant functions== | |||
* {{setElementData}} - Set an element data value | |||
* {{getElementData}} - Retrieve an element data value | |||
[[Category:Stub]] |
Revision as of 12:16, 25 May 2006
Each element that is loaded is able to have element data values attached to it. These are values that can be accessed using a keyword string and directly correspond to the element's attributes in the map file. Element data is a good way to store information you want associated with an element, for example you could use it to associate a score with a player, or a team with a vehicle.
Relevant functions
- Template:SetElementData - Set an element data value
- Template:GetElementData - Retrieve an element data value