BIS fnc assignPlayerRole: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
m (template:command argument fix) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Ensures the player can only get in the specific vehicle role. |= | | Ensures the player can only get in the specific vehicle role. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [vehicle, role, path] call [[BIS_fnc_assignPlayerRole]] |= | | [vehicle, role, path] call [[BIS_fnc_assignPlayerRole]] |SYNTAX= | ||
|p1= vehicle: [[Object]] - targeted vehicle |= Parameter 1 | |p1= vehicle: [[Object]] - targeted vehicle |= Parameter 1 | ||
Line 25: | Line 25: | ||
|p3= path: [[Array]] or [[Number]] - the turret path |= Parameter 3 | |p3= path: [[Array]] or [[Number]] - the turret path |= Parameter 3 | ||
| [[Boolean]] - [[true]] when done |= | | [[Boolean]] - [[true]] when done |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 31: | Line 31: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[assignAsDriver]], [[assignAsGunner]], [[assignAsCommander]], [[assignAsCargo]], [[assignAsTurret]] |= | | [[assignAsDriver]], [[assignAsGunner]], [[assignAsCommander]], [[assignAsCargo]], [[assignAsTurret]] |SEEALSO= | ||
}} | }} | ||
Revision as of 11:26, 7 April 2019
Description
- Description:
- Ensures the player can only get in the specific vehicle role.
- Execution:
- call
- Groups:
- Uncategorised
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