Difference between revisions of "GetAccuracyBonus - InstanceData"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>ShadeMe
(add GetAccuracyBonus description)
imported>Qazaaq
(added required f4se version)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:F4SE]]
'''Member of:''' [[InstanceData Script]]
'''Member of:''' [[InstanceData Script]]
{{Template:Papyrus:RequiredF4SE|version=0.3.1}}


Gets the accuracy bonus of an object.
Gets the accuracy bonus of an object.
Line 29: Line 26:
== See Also ==
== See Also ==
*[[InstanceData Script]]
*[[InstanceData Script]]
*[[SetAccuracyBonus - InstanceData]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:F4SE]]

Latest revision as of 16:28, 21 January 2018

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]