Mod:Creation Kit/OnRadiationDamage - ScriptObject

Member of: Mod:Creation Kit/ScriptObject Script

Event called when target takes radiation damage.

This event will only be sent to the specific script that registered for it. Other scripts attached to the same form/alias/active magic effect will not receive the event unless they also register.

Syntax
Event OnRadiationDamage(ObjectReference akTarget, bool abIngested)

Parameters

 * akTarget: The ObjectReference that took damage.
 * abIngested: 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