BIS fnc moveIn: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
|gr1 = Object Manipulation | |gr1= Object Manipulation | ||
|arg= local | |arg= local | ||
| Moves a unit into vehicle. Compatible with [[assignedVehicleRole]] output. | |descr= Moves a unit into vehicle. Compatible with [[assignedVehicleRole]] output. | ||
| [vehicle, unit, role] call [[BIS_fnc_moveIn]] | |s1= [vehicle, unit, role] call [[BIS_fnc_moveIn]] | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= unit: [[Object]] - the unit to move into ''vehicle'' | |p2= unit: [[Object]] - the unit to move into ''vehicle'' - must be [[Multiplayer Scripting#Locality|local]] | ||
|p3= role: [[Array]] - wanted seat, in format [''"role"''] or [''"role"'', turretPath]. Can be one of: | |p3= role: [[Array]] - wanted seat, in format [''"role"''] or [''"role"'', turretPath]. Can be one of: | ||
Line 25: | Line 27: | ||
* "": will load ''unit'' in the first available seat (using [[moveInAny]]) | * "": will load ''unit'' in the first available seat (using [[moveInAny]]) | ||
| [[Boolean]] - [[true]] if moved in successfully | |r1= [[Boolean]] - [[true]] if moved in successfully | ||
|x1= < | |x1= <sqf>[myCar, player, "cargo"] call BIS_fnc_moveIn;</sqf> | ||
|x2= < | |x2= <sqf>[myTank, player, ["turret", [0]]] call BIS_fnc_moveIn;</sqf> | ||
|x3= < | |x3= <sqf>[myTank, player, ["turret", -1]] call BIS_fnc_moveIn; // will moveInDriver the player</sqf> | ||
| | |seealso= [[moveInDriver]] [[moveInGunner]] [[moveInCommander]] [[moveInCargo]] [[moveInTurret]] [[moveInAny]] | ||
}} | }} | ||
Latest revision as of 23:05, 12 July 2022
Description
- Description:
- Moves a unit into vehicle. Compatible with assignedVehicleRole output.
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [vehicle, unit, role] call BIS_fnc_moveIn
- Parameters:
- vehicle: Object
- unit: Object - the unit to move into vehicle - must be local
- 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:
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