setVehicleVarName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added Example)
mNo edit summary
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| object '''setVehicleVarName''' name |= Syntax
| [[Object]]'''setVehicleVarName''' "name" |= Syntax


|p1= object: [[Object]] |= Parameter 1
|p1= [[Object]] |= Parameter 1


|p2= name: [[String]] |= Parameter 2
|p2= name: [[String]] |= Parameter 2

Revision as of 13:27, 31 August 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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

Syntax:
ObjectsetVehicleVarName "name"
Parameters:
Object
name: String
Return Value:
Nothing

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

Notes

Bottom Section