Mod:Creation Kit/SetAccuracyBonus - InstanceData

Member of: Mod:Creation Kit/InstanceData Script

Sets the accuracy bonus of an object.

Syntax
Function SetAccuracyBonus(Owner akOwner, int aiBonus) Native Global

Parameters

 * akOwner: The InstanceData Owner to get the value from.
 * aiBonus: The accuracy bonus value to set.

Return Value
None

Examples
thisInstance = new InstanceData:Owner thisInstance.Owner = self as ObjectReference SetAccuracyBonus(thisInstance, 1000) Debug.Trace("You can't miss!")
 * Set the gun's accuracy bonus