- Found in:
- Inventory Functions
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
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)