Difference between revisions of "OnRadiationDamage - ScriptObject"
Jump to navigation
Jump to search
imported>MRTCracka |
imported>Qazaaq m (minor spelling) |
||
Line 14: | Line 14: | ||
== Parameters == | == Parameters == | ||
*akTarget: The[[ObjectReference Script|ObjectReference]] that took damage. | *akTarget: The [[ObjectReference Script|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. | *abIngested: If true, the radiation damage was ingested in the form of a potion or ingredient. If false, it was from exposure. | ||
Latest revision as of 22:49, 7 January 2017
Member of: 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[edit | edit source]
Event OnRadiationDamage(ObjectReference akTarget, bool abIngested)
Parameters[edit | edit source]
- 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[edit | edit source]
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
Notes[edit | edit source]
- 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.