Hello everyone,
I'm trying to create a trigger which adds an ability to the actor in it as long as he's within the boundaries of the box. However, I can't get this to work, even though it seems ridicously simple - Here's the script:
Spoiler
Scriptname _00E_A2_FirewallDamageBoxScript extends ObjectReference
Spell Property _00E_A2_FirewallDamage Auto
Actor Property Victim Auto
Event OnTriggerEnter(ObjectReference akActionRef)
Victim = akActionRef
Victim.AddSpell(_00E_A2_FirewallDamage)
endIf
EndEvent
Event OnTriggerLeave(ObjectReference akActioNRef)
Debug.Notification("Removing damage spell.")
Victim.RemoveSpell(_00E_A2_FirewallDamage)
EndEvent
Spell Property _00E_A2_FirewallDamage Auto
Actor Property Victim Auto
Event OnTriggerEnter(ObjectReference akActionRef)
Victim = akActionRef
Victim.AddSpell(_00E_A2_FirewallDamage)
endIf
EndEvent
Event OnTriggerLeave(ObjectReference akActioNRef)
Debug.Notification("Removing damage spell.")
Victim.RemoveSpell(_00E_A2_FirewallDamage)
EndEvent
It won't compile, since Victim = akActionRef doesn't seem to work. What's an alternative?
Thanks in advance!
Nicolas