setWeaponReloadingTime: Difference between revisions

From Bohemia Interactive Community
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= [reloadInstantly, weaponName, reloadTime]: [[Array]] |= Parameter 2
|p2= [gunner, weaponName, reloadTime]: [[Array]] |= Parameter 2


| [[Boolean]] |= Return value
| [[Boolean]] |= Return value

Revision as of 11:22, 10 January 2012

Hover & click on the images for description

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