setVehicleVarName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:
'''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.
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.
 


'''Example:'''
'''Example:'''


player '''setVehicleVarName''' "aP"
player '''setVehicleVarName''' "aP"

Revision as of 22:43, 4 July 2006


object setVehicleVarName name


Operand types:

object: Object

name: String

Type of returned value:

Nothing

Compatibility:

Version 2.32 required.

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.


Example:

player setVehicleVarName "aP"