Entity::getVariable: Difference between revisions
MrPancakers (talk | contribs) (Cleaned up page) |
|||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Retrieves the custom data from the entity. | |||
==Syntax== | ==Syntax== | ||
< | <pre> | ||
entity.getVariable('variableName'); | |||
</ | </pre> | ||
==Example== | ==Example== | ||
This example will retrieve the data from the variable 'veh' that is assigned to the player | |||
< | <div class="header" style="background-color: #00baad; color: #FFFFFF; border: 2px solid #00baad;"> | ||
// | <div style="margin: 10px 10px 10px 10px;"><b>Shared</b></div> | ||
<pre> | |||
let veh = player.getVariable('veh'); | let veh = player.getVariable('veh'); | ||
</ | </pre> | ||
</div> | |||
== See More == | |||
{{Entity_functions}} | |||
Revision as of 01:56, 29 September 2018
Retrieves the custom data from the entity.
Syntax
entity.getVariable('variableName');
Example
This example will retrieve the data from the variable 'veh' that is assigned to the player
Shared
let veh = player.getVariable('veh');