assignAsCargoIndex: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(First draft documentation for new TKOH command)
 
No edit summary
 
(39 intermediate revisions by 9 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands]]
{{RV|type=command


{{Command|= Comments
|game1= tkoh
____________________________________________________________________________________________
|version1= 1.01


| TKOH |= Game name
|game2= arma3
|version2= 0.50


|1.00|= Game version
|gr1= Unit Control
____________________________________________________________________________________________


| Assigns the character to a specific cargo / passenger index of the given vehicle. |= Description
|descr= Assigns the character to a specific cargo / passenger index of the given vehicle.
____________________________________________________________________________________________
{{Feature|informative|See [[AI Group Vehicle Management]] for more information.}}


| character '''assignAsCargoIndex''' [vehicle, index]|= Syntax
|s1= character [[assignAsCargoIndex]] [vehicle, index]


|p1= character: [[Object]] - character to assign |= Parameter 1
|p1= character: [[Object]] - character to assign
|p2= vehicle: [[Object]] - vehicle to assign to |= Parameter 2
|p3= index: [[Number]] - cargo / passenger index |= Parameter 3


| [[Boolean]] |= Return value
|p2= vehicle: [[Object]] - vehicle to assign to
____________________________________________________________________________________________


|x1= <code>player assignAsCargo [myHelicopter, 1];</code> |=
|p3= index: [[Number]] - cargo / passenger index


| [[assignAsCargo]] |= See also
|r1= [[Boolean]]


|x1= <sqf>player assignAsCargoIndex [myHelicopter, 1];</sqf>
|seealso= [[assignAsCargo]] [[assignAsDriver]] [[assignAsCommander]] [[assignAsGunner]] [[assignAsTurret]] [[getCargoIndex]] [[assignedVehicleRole]] [[unassignVehicle]] [[fullCrew]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Take On Helicopters: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:06, 31 August 2022

Hover & click on the images for description

Description

Description:
Assigns the character to a specific cargo / passenger index of the given vehicle.
See AI Group Vehicle Management for more information.
Groups:
Unit Control

Syntax

Syntax:
character assignAsCargoIndex [vehicle, index]
Parameters:
character: Object - character to assign
vehicle: Object - vehicle to assign to
index: Number - cargo / passenger index
Return Value:
Boolean

Examples

Example 1:
player assignAsCargoIndex [myHelicopter, 1];

Additional Information

See also:
assignAsCargo assignAsDriver assignAsCommander assignAsGunner assignAsTurret getCargoIndex assignedVehicleRole unassignVehicle fullCrew

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