Arma 3 Scripting

Command in Unit Inventory, Object Manipulation

getCorpseWeaponholders

Also available as Markdown and JSON, or read the original wiki page.

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.

Syntax

getCorpseWeaponholders corpse

Parameters:

Returns: Array of Objects in format [primaryWeaponHolder, secondaryWeaponHolder]

Examples

Example 1

systemChat str getCorpseWeaponholders cursorObject;

See also

getCorpse · nearSupplies · allDeadMen