Entity::getVariable: Difference between revisions
MrPancakers (talk | contribs) (Cleaned up page) |
mNo edit summary |
||
| Line 18: | Line 18: | ||
== See More == | == See More == | ||
{{Entity_functions}} | {{Entity_functions}} | ||
[[Category:Entity API]] | |||
[[Category:Server-side Function]] | |||
Revision as of 10:30, 30 April 2019
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');