Difference between revisions of "SetAccuracyBonus - InstanceData"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>ShadeMe
(Create SetAccuracyBonus page)
 
imported>ShadeMe
m (Add function script name in See Also)
Line 29: Line 29:
== See Also ==
== See Also ==
*[[InstanceData Script]]
*[[InstanceData Script]]
*[[GetAccuracyBonus - InstanceData|GetAccuracyBonus]]
*[[GetAccuracyBonus - InstanceData]]

Revision as of 20:52, 30 September 2017

Member of: 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

; 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