setVehicleVarName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETVEHICLEVARNAME]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETVEHICLEVARNAME]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETVEHICLEVARNAME]]


| arma |= Game name


<h2 style="color:#000066">'''''object'' setVehicleVarName ''name'''''</h2>
|2.32|= Game version
____________________________________________________________________________________________


| 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. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| object '''setVehicleVarName''' name |= Syntax


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


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


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>player setVehicleVarName "aP"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Version 2.32 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Sets the name of the variable which contains a reference to this object.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETVEHICLEVARNAME]]
It is necessary in MP to change the variable content after a respawn.
[[Category:Scripting Commands OFP Elite |SETVEHICLEVARNAME]]
 
[[Category:Scripting Commands ArmA|SETVEHICLEVARNAME]]
 
'''Example:'''
 
player '''setVehicleVarName''' "aP"

Revision as of 23:37, 1 August 2006

-wrong parameter ("Arma") defined!-2.32
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:
object setVehicleVarName name
Parameters:
object: Object
name: String
Return Value:
Nothing

Examples

Example 1:
player setVehicleVarName "aP"

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