setVehicleId: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= ofpe
|version1= 1.00


|1.00|= Game version
|game2= arma1
____________________________________________________________________________________________
|version2= 1.00


| Sets id (integer value) to vehicle. By this id vehicle is referenced by triggers and waypoints. |DESCRIPTION=
|game3= arma2
____________________________________________________________________________________________
|version3= 1.00


| vehicleName '''setVehicleId''' id |SYNTAX=
|game4= arma2oa
|version4= 1.50


|p1= vehicleName: [[Object]] |PARAMETER1=
|game5= tkoh
|version5= 1.00


|p2= id: [[Number]] |PARAMETER2=
|game6= arma3
|version6= 0.50


| [[Nothing]] |RETURNVALUE=
|gr1= Object Manipulation
____________________________________________________________________________________________
 
|x1= <pre>player setVehicleId 1</pre> |EXAMPLE1=
____________________________________________________________________________________________


| |SEEALSO=
|gr2= Broken Commands


}}
|descr= Sets ID to vehicle. By this ID vehicle is referenced by triggers and waypoints.
 
{{Feature | Warning | This command is '''not''' to be used.}}
 
|s1= vehicleName [[setVehicleId]] id
 
|p1= vehicleName: [[Object]]


<h3 style="display:none">Notes</h3>
|p2= id: [[Number]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Nothing]]


</dl>
|x1= <sqf>player setVehicleId 1;</sqf>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[setVehicleVarName]]
[[Category:Scripting Commands|SETVEHICLEID]]
}}
[[Category:Scripting Commands OFP Elite |SETVEHICLEID]]
[[Category:Scripting Commands ArmA|SETVEHICLEID]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 23:43, 28 June 2022

Hover & click on the images for description

Description

Description:
Sets ID to vehicle. By this ID vehicle is referenced by triggers and waypoints.
This command is not to be used.
Groups:
Object ManipulationBroken Commands

Syntax

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

Examples

Example 1:
player setVehicleId 1;

Additional Information

See also:
setVehicleVarName

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