Difference between revisions of "BIS fnc assignPlayerRole"
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
− | |||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 6: | Line 5: | ||
|1.00|= Game version | |1.00|= Game version | ||
+ | |||
+ | |Eff= local |= Effect | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | | + | | Ensures the player can only get in the specific vehicle role. |= Description |
+ | ____________________________________________________________________________________________ | ||
− | + | | [vehicle, role, path] call [[BIS_fnc_assignPlayerRole]] |= Syntax | |
− | |||
− | + | |p1= vehicle: [[Object]] - targeted vehicle |= Parameter 1 | |
− | |||
− | |||
− | |||
− | + | |p2= role: [[String]] - can be one of: | |
− | + | * "driver" | |
− | * | + | * "gunner" |
+ | * "commander" | ||
+ | * "cargo" | ||
+ | * "turret" |= Parameter 2 | ||
− | + | |p3= path: [[Array]] or [[Number]] - the turret path |= Parameter 3 | |
− | |||
− | | | + | | [[Boolean]] - [[true]] when done |= Return value |
− | |||
− | |||
− | |||
− | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | |x1= <code></code> |= | + | |x1= <code>[myVehicle, "turret", [0, 1]] [[call]] [[BIS_fnc_assignPlayerRole]];</code> |= Example 1 |
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | |= See also | + | | [[assignAsDriver]], [[assignAsGunner]], [[assignAsCommander]], [[assignAsCargo]], [[assignAsTurret]] |= See also |
− | |||
}} | }} | ||
Revision as of 13:23, 27 April 2018
Click on the images for descriptions
Introduced in
- Game:
- Take On Helicopters
- Version:
- 1.00
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
- Multiplayer:
- -
- See also:
- assignAsDriverassignAsGunnerassignAsCommanderassignAsCargoassignAsTurret
Notes
Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To
Add New Note | How To