BIS fnc assignPlayerRole: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Object Manipulation |GROUP1=") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| tkoh |Game name= | | tkoh |Game name= | ||
Line 9: | Line 8: | ||
|Eff= local |= Effect | |Eff= local |= Effect | ||
| Ensures the player can only get in the specific vehicle role. |DESCRIPTION= | | Ensures the player can only get in the specific vehicle role. |DESCRIPTION= | ||
| [vehicle, role, path] call [[BIS_fnc_assignPlayerRole]] |SYNTAX= | | [vehicle, role, path] call [[BIS_fnc_assignPlayerRole]] |SYNTAX= | ||
Line 28: | Line 25: | ||
| [[Boolean]] - [[true]] when done |RETURNVALUE= | | [[Boolean]] - [[true]] when done |RETURNVALUE= | ||
|x1= <code>[myVehicle, "turret", [0, 1]] [[call]] [[BIS_fnc_assignPlayerRole]];</code> |EXAMPLE1= | |x1= <code>[myVehicle, "turret", [0, 1]] [[call]] [[BIS_fnc_assignPlayerRole]];</code> |EXAMPLE1= | ||
| [[assignAsDriver]], [[assignAsGunner]], [[assignAsCommander]], [[assignAsCargo]], [[assignAsTurret]] |SEEALSO= | | [[assignAsDriver]], [[assignAsGunner]], [[assignAsCommander]], [[assignAsCargo]], [[assignAsTurret]] |SEEALSO= |
Revision as of 22:35, 16 January 2021
Description
- Description:
- Ensures the player can only get in the specific vehicle role.
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [vehicle, role, path] call BIS_fnc_assignPlayerRole
- Parameters:
- vehicle: Object - targeted vehicle
- role: String - can be one of:
- "driver"
- "gunner"
- "commander"
- "cargo"
- "turret"
- path: Array or Number - the turret path
- Return Value:
- Boolean - true when done
Examples
- Example 1:
[myVehicle, "turret", [0, 1]] call BIS_fnc_assignPlayerRole;
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