getCorpseWeaponholders: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.18 |branch= dev |gr1= Unit Inventory |gr2= Object Manipulation |descr= Returns primary and secondary wepaon holders of a dead unit. If a unit had weapons at the moment of death, primary weapon is droped in one weaponholder and secondary weapon is dropped in another. |s1= getCorpseWeaponholders corpse |p1= corpse: Object - dead unit |r1= Array - array in format [primaryWeaponHolder, secondaryWeaponHolder] |x...")
 
No edit summary
Line 8: Line 8:


|gr2= Object Manipulation
|gr2= Object Manipulation
|descr= Returns primary and secondary wepaon holders of a dead unit. If a unit had weapons at the moment of death, primary weapon is droped in one weaponholder and secondary weapon is dropped in another.
|descr= Returns primary and secondary weapon holders of a dead unit. If a unit had weapons at the moment of death, primary weapon is droped in one weaponholder and secondary weapon is dropped in another.


|s1= [[getCorpseWeaponholders]] corpse
|s1= [[getCorpseWeaponholders]] corpse

Revision as of 16:54, 7 March 2024

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.18.

Description

Description:
Returns primary and secondary weapon holders of a dead unit. If a unit had weapons at the moment of death, primary weapon is droped in one weaponholder and secondary weapon is dropped in another.
Groups:
Unit InventoryObject Manipulation

Syntax

Syntax:
getCorpseWeaponholders corpse
Parameters:
corpse: Object - dead unit
Return Value:
Array - array in format [primaryWeaponHolder, secondaryWeaponHolder]

Examples

Example 1:
systemChat str getCorpseWeaponholders cursorObject;

Additional Information

See also:
getCorpse nearSupplies allDeadMen

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