Background for Starfield
Member of the ActiveMagicEffect script
eventOnEffectStart(ObjectReferenceakTarget, ActorakCaster, MagicEffectakBaseEffect, floatafMagnitude, floatafDuration)

Description

Wiki Description

Event called when the active magic effect has just started on the specified target.

Documentation Comment

Event received when this effect is first started (OnInit may not have been run yet!)


Parameters

  1. ObjectReferenceakTarget

    CK Wiki Description

    The Actor this effect was applied to.

  2. ActorakCaster

    CK Wiki Description

    The Actor that cast the spell this effect was from.

  3. MagicEffectakBaseEffect

  4. floatafMagnitude

  5. floatafDuration


Examples

Event OnEffectStart(Actor akTarget, Actor akCaster)
  Debug.Trace("Magic effect was started on " + akTarget)
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends ActiveMagicEffect

event OnEffectStart(ObjectReference akTarget, Actor akCaster, MagicEffect akBaseEffect, float afMagnitude, float afDuration)
    Debug.trace("Event received - OnEffectStart: akTarget = " + akTarget + " akCaster = " + akCaster + " akBaseEffect = " + akBaseEffect + " afMagnitude = " + afMagnitude + " afDuration = " + afDuration)
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.