Scriptname PCKP_OnActivateRepeatCast extends ObjectReference Spell Property mySpell autofloat Property delay autoauto State Inactiveevent OnEndState() RegisterForSingleUpdate(delay)endEventevent OnActivate(ObjectReference akAC) gotoState("Active")endEventendStateState Activeevent OnEndState() UnregisterForUpdate()endEvent event OnActivate(ObjectReference akAC) gotoState("Inactive")endEventendStateevent OnUpdate()mySpell.Cast(self, GetLinkedRef())RegisterForSingleUpdate(delay)endEvent
ScriptName PCKP_OnActivateRepeatCast Extends ObjectReferenceBool bOnSpell Property kMySpell AutoFloat Property fDelay AutoEvent OnActivate(ObjectReference akActionRef) bOn = !bOn If bOn Utility.Wait(fDelay) kMySpell.Cast(Self, GetLinkedRef()) EndIfEndEvent?