Background for Starfield
Member of the ScriptObject script
eventOnRadiationDamage(ObjectReferenceakTarget, boolabIngested)

[DEV SERVER] Loading description...


Caveats

CK Wiki - Notes

  • Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.
  • This event only fires once, in order to have it fire again, you must re-register.

Parameters

ObjectReferenceakTarget

CK Wiki Description

The ObjectReference that took damage.

boolabIngested

CK Wiki Description

If true, the radiation damage was ingested in the form of a potion or ingredient. If false, it was from exposure.


Examples

Event OnRadiationDamage(ObjectReference akTarget, bool abIngested)
  Debug.Trace(akTarget + " took radiation damage...")
  if ( abIngested )
    Debug.Trace(" and it was ingested.")
  else
    Debug.Trace(" and it was from exposure.")
EndEvent

Auto-Generated Example

Scriptname MyCoolScript extends ScriptObject

event OnRadiationDamage(ObjectReference akTarget, bool abIngested)
    Debug.trace("Event received - OnRadiationDamage: akTarget = " + akTarget + " abIngested = " + abIngested)
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.