Background for Skyrim SE
Member of the _Q2C_Functions script
intfunctionSetPoison(ObjectReferenceakObjRef, PotionakPoison, intaiCharges=1)NativeGlobal

Description

Documentation String

Applies akPoison to akObjRef. 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

ObjectReferenceakObjRef

PotionakPoison

intaiCharges=1


Examples

Auto-Generated Example

ObjectReference myObjectReference__akObjRef
Potion myPotion__akPoison
int myInt__aiCharges

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