set_ammo

Overview

Sets the inventory item count or weapon ammo count to a new value.

Inputs

activate

Sets the inventory item count or weapon ammo count to a new value.

Outputs

finishInvokes on completion.

Refs

targetInventory item or weapon to apply the new value.

Properties

Min AmmoIf Max Ammo is 0, sets the new value to Min Ammo.
Max AmmoSets the new value to a random Value in the range of Min Ammo and Max Ammo.

Usage examples

Clones a loot object from a random source (either metal or chemical) and then randomly chooses how much loot the player will get based on the probabilities set in the random-chooser's properties.

Shortcuts

  • N/A

See also

On this page:


Exodus SDK © 2005-2023, 4A Games Limited. Developed by 4A Games®.
4A Games® is a registered trademark, and 4A Games Limited, Exodus SDK and their respective logos are trademarks of 4A Games Limited.
Published by Deep Silver. Deep Silver is a division of PLAION GmbH, Austria. Deep Silver and Plaion are registered trademarks of PLAION GmbH.
Metro Exodus is inspired by the internationally best-selling novels METRO 2033 and METRO 2034 by Dmitry Glukhovsky.
All other trademarks, logos and copyrights are property of their respective owners. All rights reserved.
By using this site, downloading or using the Exodus SDK or related content, you are agreeing to be bound by the terms of the End User License Agreement.


EULA