DropAlt
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
The calling actor/container will drop the specified number of the specified item(s) in the world, next to it. This function is an improved version of the vanilla Drop:
- This function may be called on any container, and is not restricted to actors alone.
- A FormList may be passed as parameter (in place of an item).
- All stats/attributes (health, script, mods, ownership, etc.) of dropped items are preserved.
- This function will trigger the OnDrop script event (where applicable).
Syntax
reference.DropAlt item/list:ref quantity:int clearOwnership:0/1
Example
player.DropAlt WeapLaserRifle
The player will drop all WeapLaserRifle items.
containerRef.DropAlt NVHoldoutWeapons 2 1
containerRef will drop 2 of each item in the list NVHoldoutWeapons. Ownership will be cleared off all dropped items.
Notes
- If quantity is not specified or is <= 0, all instances of the item(s) will be dropped.