- Found in:
- Inventory Functions
intfunctionWornObjectSetPoisonCharges(ActorakActor, intaiHandSlot, intaiSlotMask, intaiCharges=1)NativeGlobal
Description
Documentation String
Set the number of poison charges on the weapon in aiHandSlot
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
Examples
Auto-Generated Example
Actor myActor__akActor
int myInt__aiHandSlot
int myInt__aiSlotMask
int myInt__aiCharges
int returnedValue = _Q2C_Functions.WornObjectSetPoisonCharges(myActor__akActor, myInt__aiHandSlot, myInt__aiSlotMask, myInt__aiCharges)