BIS fnc assignPlayerRole: Difference between revisions
Jump to navigation
Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki) |
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
||
(33 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | |||
|game1= tkoh | |||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
| | |gr1= Object Manipulation | ||
| | |eff= local | ||
|descr= Ensures the player can only get in the specific vehicle role. | |||
|s1= [vehicle, role, path] call [[BIS_fnc_assignPlayerRole]] | |||
|p1= vehicle: [[Object]] - targeted vehicle | |||
|p2= role: [[String]] - can be one of: | |||
* "driver" | |||
* "gunner" | |||
* "commander" | |||
* "cargo" | |||
* "turret" | |||
| | |p3= path: [[Array]] or [[Number]]s - the turret path | ||
| | |r1= [[Boolean]] - [[true]] when done | ||
|x1= <sqf>[myVehicle, "turret", [0, 1]] call BIS_fnc_assignPlayerRole;</sqf> | |||
|x1= < | |||
|seealso= [[assignAsDriver]] [[assignAsGunner]] [[assignAsCommander]] [[assignAsCargo]] [[assignAsTurret]] | |||
}} | }} | ||
Latest revision as of 22:44, 12 July 2022
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 Numbers - the turret path
- Return Value:
- Boolean - true when done
Examples
- Example 1:
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