Difference between revisions of "SetAccuracyBonus - InstanceData"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>ShadeMe
(Create SetAccuracyBonus page)
 
imported>Qazaaq
(added required f4se version)
 
(One intermediate revision 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}}


Sets the accuracy bonus of an object.
Sets the accuracy bonus of an object.
Line 29: Line 27:
== See Also ==
== See Also ==
*[[InstanceData Script]]
*[[InstanceData Script]]
*[[GetAccuracyBonus - InstanceData|GetAccuracyBonus]]
*[[GetAccuracyBonus - InstanceData]]
 
 
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:F4SE]]

Latest revision as of 16:29, 21 January 2018

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

Sets the accuracy bonus of an object.

Syntax[edit | edit source]

Function SetAccuracyBonus(Owner akOwner, int aiBonus) Native Global

Parameters[edit | edit source]

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

Return Value[edit | edit source]

None

Examples[edit | edit source]

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

See Also[edit | edit source]