vehicleVarName: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 22: | Line 22: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= Returns the variable name that contains a primary editor reference to this object. This is the variable given in the ''Insert Unit dialog / name field'' in the editor. It can be changed using [[setVehicleVarName]] | |descr= Returns the variable name that contains a primary editor reference to this object. This is the variable given in the ''Insert Unit dialog / name field'' in the editor. It can be changed using [[setVehicleVarName]]. | ||
|s1= [[vehicleVarName]] object | |s1= [[vehicleVarName]] object | ||
Line 37: | Line 35: | ||
}} | }} | ||
{{Notes | |||
|user= Killzone_Kid | |||
|timestamp= 20150419084500 | |||
|text= To get variable names referencing an object in mission namespace: | |||
<code>KK_fnc_objectVarNames = { | |||
To get variable names referencing an object in mission namespace: | |||
<code>KK_fnc_objectVarNames | |||
[[private]] "_names"; | [[private]] "_names"; | ||
_names <nowiki>=</nowiki> []; | _names <nowiki>=</nowiki> []; | ||
Line 56: | Line 51: | ||
{{cc|Example}} | {{cc|Example}} | ||
myGroup | myGroup = [[group]] [[player]]; | ||
aGroup | aGroup = [[group]] [[player]]; | ||
[[hint]] [[str]] ([[group]] [[player]] [[call]] KK_fnc_objectVarNames); | [[hint]] [[str]] ([[group]] [[player]] [[call]] KK_fnc_objectVarNames); {{cc|["agroup", "mygroup"]}}</code> | ||
}} | |||
Revision as of 21:54, 18 February 2022
Description
- Description:
- Returns the variable name that contains a primary editor reference to this object. This is the variable given in the Insert Unit dialog / name field in the editor. It can be changed using setVehicleVarName.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- vehicleVarName object
- Parameters:
- object: Object
- Return Value:
- String - Variable name, if none was set,
""
is returned
Examples
- Example 1:
hint vehicleVarName player;
Additional Information
- See also:
- setVehicleVarName BIS_fnc_objectVar
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands: Local Effect