getCorpseWeaponholders

From Bohemia Interactive Community
Revision as of 16:06, 8 October 2024 by Lou Montana (talk | contribs) (Fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

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 dropped into primary weaponholder and secondary weapon is dropped into secondary.
Groups:
Unit InventoryObject Manipulation

Syntax

Syntax:
getCorpseWeaponholders corpse
Parameters:
corpse: Object - dead unit
Return Value:
Array of Objects 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