getCargoIndex: Difference between revisions
Jump to navigation
Jump to search
Waffle SS. (talk | contribs) m (global args) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns index of the unit in cargo. 0,1,2... or -1 if not in cargo. |= | | Returns index of the unit in cargo. 0,1,2... or -1 if not in cargo. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| vehicle '''getCargoIndex''' unit |= | | vehicle '''getCargoIndex''' unit |SYNTAX= | ||
|p1= vehicle: [[Object]] |= | |p1= vehicle: [[Object]] |PARAMETER1= | ||
|p2= unit: [[Object]] |= | |p2= unit: [[Object]] |PARAMETER2= | ||
| [[Number]] |= | | [[Number]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[player]] [[moveInCargo]] heli; | |x1= <code>[[player]] [[moveInCargo]] heli; | ||
[[hint]] [[str]] (heli [[getCargoIndex]] [[player]]);</code> |= | [[hint]] [[str]] (heli [[getCargoIndex]] [[player]]);</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[moveInCargo]], [[assignAsCargoIndex]], [[emptyPositions]]|= | | [[moveInCargo]], [[assignAsCargoIndex]], [[emptyPositions]]|SEEALSO= | ||
}} | }} |
Revision as of 14:39, 7 April 2019
Description
- Description:
- Returns index of the unit in cargo. 0,1,2... or -1 if not in cargo.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
player moveInCargo heli; hint str (heli getCargoIndex player);
Additional Information
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