Background for Skyrim SE
Member of the _Q2C_Functions script
intfunctionWornObjectSetPoison(ActorakActor, intaiHandSlot, intaiSlotMask, PotionakPoison, intaiCharges=1)NativeGlobal

Description

Documentation String

Applies akPoison to weapon in aiHandSlot. Note the item MUST be a weapon, or the function will fail and return -1
Returns: The number of poison charges the weapon now has (which should be the same as aiCharges)
or -1 if unsuccessful


Caveats


Parameters

ActorakActor

intaiHandSlot

intaiSlotMask

PotionakPoison

intaiCharges=1


Examples

Auto-Generated Example

Actor myActor__akActor
int myInt__aiHandSlot
int myInt__aiSlotMask
Potion myPotion__akPoison
int myInt__aiCharges

int returnedValue = _Q2C_Functions.WornObjectSetPoison(myActor__akActor, myInt__aiHandSlot, myInt__aiSlotMask, myPotion__akPoison, myInt__aiCharges)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.