BIS fnc assignPlayerRole: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " +" to " ") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=") |
||
Line 11: | Line 11: | ||
| Ensures the player can only get in the specific vehicle role. | | Ensures the player can only get in the specific vehicle role. | ||
| [vehicle, role, path] call [[BIS_fnc_assignPlayerRole]] | |s1=[vehicle, role, path] call [[BIS_fnc_assignPlayerRole]] | ||
|p1= vehicle: [[Object]] - targeted vehicle | |p1= vehicle: [[Object]] - targeted vehicle |
Revision as of 15:57, 12 June 2021
Description
- Description:
- Description needed
- 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