ApplyWeaponPoison

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Applies specified poison to the calling inventory reference. If calling reference is an Actor, its equipped weapon will be used.

New in 4.93

The poison arg is now optional; if omitted or set to a null ref, will remove the poison from the weapon, if there is any.

Syntax

[help]
weaponInventoryRefOrActor.ApplyWeaponPoison poison:baseform{0}

Example

Player.ApplyWeaponPoison BleakVenom 

Will apply Bleak Venom to player's equipped weapon.

inventoryRefr.ApplyWeaponPoison BleakVenom 

Will apply Bleak Venom to the inventoryRefr, provided it's a weapon.