BIS fnc moveIn: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "<code> *(.*)\{\{codecomment *\| *([^ ]*) *\}\}(.*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 33: | Line 33: | ||
|x2= <sqf>[myTank, player, ["turret", [0]]] [call]] BIS_fnc_moveIn;</sqf> | |x2= <sqf>[myTank, player, ["turret", [0]]] [call]] BIS_fnc_moveIn;</sqf> | ||
|x3= <code>[myTank, player, ["turret", -1]] [call]] BIS_fnc_moveIn; | |x3= <code>[myTank, player, ["turret", -1]] [call]] BIS_fnc_moveIn; // will moveInDriver the player</code> | ||
|mp= ''unit'' must be '''[[Multiplayer Scripting#Locality|local]]''' | |mp= ''unit'' must be '''[[Multiplayer Scripting#Locality|local]]''' |
Revision as of 23:04, 12 July 2022
Description
- Description:
- Moves a unit into vehicle. Compatible with assignedVehicleRole output.
- Execution:
- call
- Multiplayer:
- unit must be local
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [vehicle, unit, role] call BIS_fnc_moveIn
- Parameters:
- vehicle: Object
- unit: Object - the unit to move into vehicle
- role: Array - wanted seat, in format ["role"] or ["role", turretPath]. Can be one of:
- "driver"
- "gunner"
- "commander"
- "cargo"
- "turret"
- "": will load unit in the first available seat (using moveInAny)
- Return Value:
- Boolean - true if moved in successfully
Examples
- Example 1:
- Example 2:
- Example 3:
[myTank, player, ["turret", -1]] [call]] BIS_fnc_moveIn; // will moveInDriver the 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