Page MenuHomeFeedback Tracker

introduce "setWeaponMagazine" to directly manipulate weapon magazine
Assigned, WishlistPublic

Description

unit setWeaponMagazine ["weaponClass","magazineClass",muzzleIndex,ammoCount];

"weaponClass" - which weapon to set mag for
"magazineClass" - which magazine to set
muzzleIndex - which muzzle to use (OPTIONAL config muzzle index, 0 - default main)
ammoCount - bullets in the mag (OPTIONAL - default full mag)

to remove mag, set "magazineClass to ""

unit setWeaponMagazine [primaryWeapon player,""]; remove mag from main muzzle of primary weapon of player
unit setWeaponMagazine [primaryWeapon player,"",1];
remove mag from secondary muzzle of primary weapon of player

unit setWeaponMagazine [handgunWeapon player,"16Rnd_9x21_Mag",0,5]; set mag for main muzzle of handgun weapon of player with 5 bullets
unit setWeaponMagazine [handgunWeapon player,""];
remove mag for main muzzle of handgun weapon of player

Details

Legacy ID
2483798244
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Scripting.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Open.
Killzone_Kid set Legacy ID to 2483798244.May 7 2016, 7:22 PM