BIS_fnc_assignPlayerRole

From Bohemia Interactive Community
Revision as of 00:24, 30 August 2019 by Lou Montana (talk | contribs) (Text replacement - "|= Game version" to "|Game version=")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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