GetAccuracyBonus - InstanceData

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: InstanceData Script
Requires F4SE version 0.3.1 or higher.

Gets the accuracy bonus of an object.

Syntax[edit | edit source]

int Function GetAccuracyBonus(Owner akOwner) Native Global

Parameters[edit | edit source]

  • akOwner: The InstanceData Owner to get the value from.

Return Value[edit | edit source]

The object's accuracy bonus.

Examples[edit | edit source]

; Get the gun's accuracy bonus
thisInstance = new InstanceData:Owner
thisInstance.owner = self as ObjectReference

int thisBonus = GetAccuracyBonus(thisInstance)

See Also[edit | edit source]