assignedCommander: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[.*\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2
|game1= arma2


|1.00
|version1= 1.00
 
|game2= arma2oa
 
|version2= 1.51
 
|game3= tkoh
 
|version3= 1.00
 
|game4= arma3
 
|version4= 0.50


|gr1= Unit Control
|gr1= Unit Control
Line 9: Line 21:
|gr2= Object Manipulation
|gr2= Object Manipulation


| Returns the soldier assigned to the given vehicle as a commander.
|descr= Returns the soldier assigned to the given vehicle as a commander.


| '''assignedCommander''' vehicle
|s1= '''assignedCommander''' vehicle


|p1= vehicle: [[Object]] -
|p1= vehicle: [[Object]]


| [[Object]]
|r1= [[Object]]


|x1= <code>_commander <nowiki>=</nowiki> [[assignedCommander]] vehicleName </code>
|x1= <code>_commander = [[assignedCommander]] vehicleName;</code>


|seealso= [[assignAsCommander]], [[assignAsGunner]], [[assignAsTurret]], [[assignAsDriver]], [[moveInCommander]], [[moveInGunner]], [[moveInTurret]], [[moveInDriver]], [[commander]], [[gunner]], [[assignAsCargo]], [[driver]], [[moveInCargo]], [[assignedGunner]], [[assignedCargo]], [[assignedDriver]]
|seealso= [[assignAsCommander]], [[assignAsGunner]], [[assignAsTurret]], [[assignAsDriver]], [[moveInCommander]], [[moveInGunner]], [[moveInTurret]], [[moveInDriver]], [[commander]], [[gunner]], [[assignAsCargo]], [[driver]], [[moveInCargo]], [[assignedGunner]], [[assignedCargo]], [[assignedDriver]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 09:06, 23 April 2021

Hover & click on the images for description

Description

Description:
Returns the soldier assigned to the given vehicle as a commander.
Groups:
Unit ControlObject Manipulation

Syntax

Syntax:
assignedCommander vehicle
Parameters:
vehicle: Object
Return Value:
Object

Examples

Example 1:
_commander = assignedCommander vehicleName;

Additional Information

See also:
assignAsCommanderassignAsGunnerassignAsTurretassignAsDrivermoveInCommandermoveInGunnermoveInTurretmoveInDrivercommandergunnerassignAsCargodrivermoveInCargoassignedGunnerassignedCargoassignedDriver

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