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

Description

Documentation String

Set the number of poison charges on akObjRef
Returns: The number of poison charges now on the weapon in aiHandSlot (which should be the same as aiCharges)
or -1 if unsuccessful for any reason (eg the item is not a weapon, or no poison applied)


Caveats


Parameters

ObjectReferenceakObjRef

intaiCharges=1


Examples

Auto-Generated Example

ObjectReference myObjectReference__akObjRef
int myInt__aiCharges

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