setVehicleVarName: Difference between revisions
Jump to navigation
Jump to search
m (Reset ArmA version) |
m (added Example) |
||
Line 21: | Line 21: | ||
|x1= <pre>player setVehicleVarName "aP"</pre> |= Example 1 | |x1= <pre>player setVehicleVarName "aP"</pre> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
____________________________________________________________________________________________ | |||
|x2= <pre>_thing = _this select 0; | |||
_thingname = vehicleVarName _thing; | |||
WaitUntil{not alive _thing}; | |||
_vcl = _thing createVehicle getpos player; | |||
_vcl setVehicleVarName _thingname; | |||
</pre> |= Example 2 | |||
____________________________________________________________________________________________ | |||
| |= See also | | |= See also |
Revision as of 15:54, 23 June 2007
Description
- Description:
- Sets the name of the variable which contains a reference to this object. It is necessary in MP to change the variable content after a respawn.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
player setVehicleVarName "aP"
- Example 2:
_thing = _this select 0;
_thingname = vehicleVarName _thing; WaitUntil{not alive _thing}; _vcl = _thing createVehicle getpos player; _vcl setVehicleVarName _thingname;
Additional Information
- See also:
- See also needed
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