|
Used for marked men healing[]
The notes of the script attached to this item:
ScriptName NVDLC04RadiationHealTriggerSCRIPT
- This script handles the radiation healing marked men since radiation doesn't function on NPCs.
- CES 05/20/2011
- CES 06/23/2011 - Updated to use food so we're not using AddSpell which adds the effect to the base object.
Short bInitOnce; ;Runs the initialize script only once.
Reference rActor; ;Blah
BEGIN OnTriggerEnter
- Set rActor to GetActionRef;
- If ( rActor.GetInFaction NVDLC04MarkedMenFaction == 1 )
- If ( rActor.IsSpellTarget NVDLC04RadHealFood== 0 )
- rActor.CIOS NVDLC04RadHealFood;
- EndIf
- EndIf
END
BEGIN OnTriggerLeave
- Set rActor to GetActionRef;
- If ( rActor.IsSpellTarget NVDLC04RadHealFood== 1 )
- rActor.Dispel NVDLC04RadHealFood;
- EndIf
END