Difference between revisions of "GetAccuracyBonus - InstanceData"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>ShadeMe
(add GetAccuracyBonus description)
imported>ShadeMe
(remove extra space at top of page)
Line 2: Line 2:
[[Category:Papyrus]]
[[Category:Papyrus]]
[[Category:F4SE]]
[[Category:F4SE]]
'''Member of:''' [[InstanceData Script]]
'''Member of:''' [[InstanceData Script]]



Revision as of 20:27, 30 September 2017

Member of: InstanceData Script

Gets the accuracy bonus of an object.

Syntax

int Function GetAccuracyBonus(Owner akOwner) Native Global

Parameters

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

Return Value

The object's accuracy bonus.

Examples

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

int thisBonus = GetAccuracyBonus(thisInstance)

See Also