moveInCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|PARAMETER1= |p22=" to "|PARAMETER21= |p22=") |
Lou Montana (talk | contribs) |
||
Line 14: | Line 14: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| unitName | | unitName [[moveInCargo]] vehicle |SYNTAX= | ||
|p1= unitName: [[Object]] |PARAMETER1= | |p1= unitName: [[Object]] |PARAMETER1= | ||
|p2= vehicle: [[Object]] |PARAMETER2= | |p2= vehicle: [[Object]] |PARAMETER2= | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s2= unitName | |s2= unitName [[moveInCargo]] [vehicle, CargoIndex] |SYNTAX2= | ||
|p21= unitName: [[Object]] |PARAMETER21= | |p21= unitName: [[Object]] |PARAMETER21= | ||
|p22= vehicle: [[Object]] |PARAMETER22= | |p22= vehicle: [[Object]] |PARAMETER22= | ||
|r2= [[Nothing]] | |p23= CargoIndex: [[Number]] |PARAMETER23= | ||
|r2= [[Nothing]] |RETURNVALUE2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_soldierOne [[moveInCargo]] _jeepOne;</code> |EXAMPLE1= | |x1= <code>_soldierOne [[moveInCargo]] _jeepOne;</code> |EXAMPLE1= | ||
|x2= <code>_soldierOne [[moveInCargo]] [_jeepOne, 1];</code>|EXAMPLE2= | |x2= <code>_soldierOne [[moveInCargo]] [_jeepOne, 1];</code>|EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[moveInAny]], [[moveInCommander]], [[moveInDriver]], [[moveInGunner]], [[moveInTurret]], [[assignAsCargo]], [[assignAsCommander]], [[assignAsDriver]], [[assignAsGunner]], [[getCargoIndex]] |SEEALSO= | | [[moveInAny]], [[moveInCommander]], [[moveInDriver]], [[moveInGunner]], [[moveInTurret]], [[assignAsCargo]], [[assignAsCommander]], [[assignAsDriver]], [[assignAsGunner]], [[getCargoIndex]] |SEEALSO= | ||
}} | }} | ||
Line 43: | Line 46: | ||
<dd class="notedate">Posted on August 4, 2006 - 14:42 | <dd class="notedate">Posted on August 4, 2006 - 14:42 | ||
<dt class="note"> | <dt class="note">[[User:Hardrock|hardrock]] | ||
<dd class="note">''Notes from before the conversion''<br> | |||
If you place a soldier in a vehicle with the moveInCargo command, he wont "know" he's in the vehicle, and thus he won't disembark properly when the vehicle reaches a Transport Unload waypoint. Therefore you have to use the [[assignAsCargo]] command, in order for the AI to catch on. Something like this: | If you place a soldier in a vehicle with the moveInCargo command, he wont "know" he's in the vehicle, and thus he won't disembark properly when the vehicle reaches a Transport Unload waypoint. Therefore you have to use the [[assignAsCargo]] command, in order for the AI to catch on. Something like this: <code>_soldier [[moveInCargo]] helo1; _soldier [[assignAsCargo]] helo1;</code> | ||
<dd class="notedate"> | |||
<dt class="note"> | <dt class="note">[[User:Ceeeb|Ceeeb]] | ||
<dd class="note"> | <dd class="note"> | ||
In '''OFP v1.96''', the moveIn commands will not trigger an associated getIn [[Operation_Flashpoint:_EventHandlers_List|event]]. To ensure the getIn event is fired, use the "getIn Cargo" [[Operation_Flashpoint:_Actions_List|action]] command. | In '''OFP v1.96''', the moveIn commands will not trigger an associated getIn [[Operation_Flashpoint:_EventHandlers_List|event]]. To ensure the getIn event is fired, use the "getIn Cargo" [[Operation_Flashpoint:_Actions_List|action]] command. | ||
<dd class="notedate"> | |||
<dt class="note"> | <dt class="note">[[User:Killzone_Kid|Killzone_Kid]] | ||
<dd class="note"> | <dd class="note"> | ||
In Arma 3 when using the alternative syntax of [[moveInCargo]], it is necessary to call [[assignAsCargoIndex]] because it is not called automatically. | In Arma 3 when using the alternative syntax of [[moveInCargo]], it is necessary to call [[assignAsCargoIndex]] because it is not called automatically. | ||
Line 63: | Line 65: | ||
unit1 [[moveInCargo]] heli; | unit1 [[moveInCargo]] heli; | ||
</code> | </code> | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
Line 70: | Line 71: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands| | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands ArmA | |||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Vehicle_Assignment|{{uc:{{PAGENAME}}}}]] |
Revision as of 14:52, 3 September 2019
Description
- Description:
- Move soldier into vehicle cargo position (Immediate, no animation).
- Groups:
- Uncategorised
Syntax
- Syntax:
- unitName moveInCargo vehicle
- Parameters:
- unitName: Object
- vehicle: Object
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- unitName moveInCargo [vehicle, CargoIndex]
- Parameters:
- unitName: Object
- vehicle: Object
- CargoIndex: Number
- Return Value:
- Nothing
Examples
- Example 1:
_soldierOne moveInCargo _jeepOne;
- Example 2:
_soldierOne moveInCargo [_jeepOne, 1];
Additional Information
- See also:
- moveInAnymoveInCommandermoveInDrivermoveInGunnermoveInTurretassignAsCargoassignAsCommanderassignAsDriverassignAsGunnergetCargoIndex
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
- Posted on August 4, 2006 - 14:42
- hardrock
- Notes from before the conversion
If you place a soldier in a vehicle with the moveInCargo command, he wont "know" he's in the vehicle, and thus he won't disembark properly when the vehicle reaches a Transport Unload waypoint. Therefore you have to use the assignAsCargo command, in order for the AI to catch on. Something like this:_soldier moveInCargo helo1; _soldier assignAsCargo helo1;
- Ceeeb
- In OFP v1.96, the moveIn commands will not trigger an associated getIn event. To ensure the getIn event is fired, use the "getIn Cargo" action command.
- Killzone_Kid
-
In Arma 3 when using the alternative syntax of moveInCargo, it is necessary to call assignAsCargoIndex because it is not called automatically.
unit1 moveInCargo [heli, 3]; unit1 assignAsCargoIndex [heli, 3];
Alternatively avoid this broken syntax all together and use:unit1 assignAsCargoIndex [heli, 3]; unit1 moveInCargo heli;
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.46
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- Command Group: Vehicle Assignment