Background for Fallout 4
Member of the Perk script
eventOnEntryRun(intauiEntryID, ObjectReferenceakTarget, ActorakOwner)

Description

Wiki Description

Event called when a perk entry point is run.

Documentation Comment

Event called when a perk entry is run, with the specified target and perk owner (in parallel with the fragment)


Caveats

CK Wiki - Notes

  • This event runs in parallel with the perk entry fragment.
  • This will only run for entries that actually support fragments. If the selected entry type does not support fragments it will not work.
  • Some perk entry types fire extremely often. This event should be avoided if your perk contains one of those types, as it will be called each time the conditions pass, regardless of the existence of a fragment or not.

Parameters

  1. intauiEntryID

    CK Wiki Description

    The ID of the entry point that was run

  2. ObjectReferenceakTarget

    CK Wiki Description

    The target of the perk entry point

  3. ActorakOwner

    CK Wiki Description

    The perk owner


Examples

Event OnEntryRun(int auiEntryID, ObjectReference akTarget, Actor akOwner)
  Debug.Trace("This perk on " + akOwner + " ran entry " + auiEntryID + " on " + akTarget)
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Perk

event OnEntryRun(int auiEntryID, ObjectReference akTarget, Actor akOwner)
    Debug.trace("Event received - OnEntryRun: auiEntryID = " + auiEntryID + " akTarget = " + akTarget + " akOwner = " + akOwner)
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.