Difference between revisions of "BIS fnc assignPlayerRole"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "|= Comments" to "|Comments=")
Line 1: Line 1:
{{Function|= Comments
+
{{Function|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  

Revision as of 23:18, 29 August 2019

Introduced with Take On Helicopters version 1.001.00
Hover & click on the images for descriptions

Description

Description:
Ensures the player can only get in the specific vehicle role.

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

Execution:
call
See also:
assignAsDriverassignAsGunnerassignAsCommanderassignAsCargoassignAsTurret

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

Notes

Bottom Section