BIS fnc assignPlayerRole: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
Line 24: Line 24:
|p3= path: [[Array]] or [[Number]] - the turret path
|p3= path: [[Array]] or [[Number]] - the turret path


| [[Boolean]] - [[true]] when done
|r1=[[Boolean]] - [[true]] when done


|x1= <code>[myVehicle, "turret", [0, 1]] [[call]] [[BIS_fnc_assignPlayerRole]];</code>
|x1= <code>[myVehicle, "turret", [0, 1]] [[call]] [[BIS_fnc_assignPlayerRole]];</code>

Revision as of 20:26, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
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

See also:
assignAsDriverassignAsGunnerassignAsCommanderassignAsCargoassignAsTurret

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