getCorpseWeaponholders: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
Line 8: Line 8:


|gr2= Object Manipulation
|gr2= Object Manipulation
|descr= 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.
|descr= 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.


Line 14: Line 15:
|p1= corpse: [[Object]] - dead unit
|p1= corpse: [[Object]] - dead unit


|r1= [[Array]] - array in format [primaryWeaponHolder, secondaryWeaponHolder]
|r1= [[Array]] of [[Object]]s in format [primaryWeaponHolder, secondaryWeaponHolder]
 


|x1= <sqf>systemChat str getCorpseWeaponholders cursorObject;</sqf>
|x1= <sqf>systemChat str getCorpseWeaponholders cursorObject;</sqf>


|seealso= [[getCorpse]] [[nearSupplies]] [[allDeadMen]]
|seealso= [[getCorpse]] [[nearSupplies]] [[allDeadMen]]
}}
}}

Revision as of 14:38, 14 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 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