setVehicleId: 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|SETVEHICLEID]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |SETVEHICLEID]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SETVEHICLEID]]


| arma |= Game name


<h2 style="color:#000066">'''''object'' setVehicleId ''id'''''</h2>
|2.33|= Game version
____________________________________________________________________________________________


| Sets id (integer value) to vehicle. By this id vehicle is referenced by triggers and waypoints. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| object '''setVehicleId''' id |= Syntax


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


'''id:''' [[Number]]
|p2= id: [[Number]] |= Parameter 2


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


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


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


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


Sets id (integer value) to vehicle.
</dl>


By this id vehicle is referenced by triggers and waypoints.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETVEHICLEID]]
 
[[Category:Scripting Commands OFP Elite |SETVEHICLEID]]
'''Example:'''
[[Category:Scripting Commands ArmA|SETVEHICLEID]]
 
player '''setVehicleId''' 1

Revision as of 00:36, 2 August 2006

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

Description

Description:
Sets id (integer value) to vehicle. By this id vehicle is referenced by triggers and waypoints.
Groups:
Uncategorised

Syntax

Syntax:
object setVehicleId id
Parameters:
object: Object
id: Number
Return Value:
Nothing

Examples

Example 1:
player setVehicleId 1

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