BIS fnc assignPlayerRole: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ?\[\[([^ ]+)\]\], *\[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3")
Line 30: Line 30:
|x1= <code>[myVehicle, "turret", [0, 1]] [[call]] [[BIS_fnc_assignPlayerRole]];</code>
|x1= <code>[myVehicle, "turret", [0, 1]] [[call]] [[BIS_fnc_assignPlayerRole]];</code>


|seealso= [[assignAsDriver]] [[assignAsGunner]], [[assignAsCommander]], [[assignAsCargo]], [[assignAsTurret]]
|seealso= [[assignAsDriver]] [[assignAsGunner]] [[assignAsCommander]], [[assignAsCargo]], [[assignAsTurret]]
}}
}}

Revision as of 13:53, 1 July 2022

Hover & click on the images for description

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:
[myVehicle, "turret", [0, 1]] call BIS_fnc_assignPlayerRole;

Additional Information

See also:
assignAsDriver assignAsGunner assignAsCommanderassignAsCargoassignAsTurret

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