setWeaponReloadingTime: Difference between revisions
Jump to navigation
Jump to search
(New command - replaces setWeaponState maybe???) |
m (corrected example array) |
||
Line 14: | Line 14: | ||
|p1= vehicle: [[Object]] |= Parameter 1 | |p1= vehicle: [[Object]] |= Parameter 1 | ||
|p2= [ | |p2= [gunner, weaponName, reloadTime]: [[Array]] |= Parameter 2 | ||
| [[Boolean]] |= Return value | | [[Boolean]] |= Return value |
Revision as of 10:22, 10 January 2012
Description
- Description:
- Sets states and/or makes an action of/on weapon. Reload time is between 0 and 1 inclusive, where 1 is 100% of maximum reloading time.
- Groups:
- Uncategorised
Syntax
- Syntax:
- vehicle setWeaponReloadingTime [gunner, weaponName, reloadTime]
- Parameters:
- vehicle: Object
- [gunner, weaponName, reloadTime]: Array
- Return Value:
- Boolean
Examples
- Example 1:
_done = _vehicle setWeaponReloadingTime [gunner, , 0.5];
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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma 2: Operation Arrowhead version 1.60
- Arma 2: Operation Arrowhead: New Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters
- ArmA 2 OA: New Scripting Commands List