turretLocal: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {3,}\|" to " |") |
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 | | arma3 |
Revision as of 11:40, 24 January 2021
Description
- Description:
- Description needed
- Multiplayer:
- A vehicle turret will change locality when player gunner gets in it, just like vehicle changes locality when player driver gets in it. Many commands for turrets work only where turret is local. When gunner leaves turret it is supposed to change locality to the locality of the vehicle.
- Groups:
- Turrets
Syntax
- Syntax:
- Syntax needed
- Parameters:
- vehicle: Object
- turretPath: Array
- Return Value:
- Return value needed
Examples
- Example 1:
_isLocal = vehicle player turretLocal [0];
- Example 2:
if (heli turretLocal [1]) then {heli setVehicleAmmo 1};
- Example 3:
if (isNil {heli turretLocal [5]}) then {hint "Turret 5 is non-existent"};
Additional Information
- See also:
- See also needed
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