When adding new scripts causes CK...
TO CRASH! Shit. Are the CK Wiki scripts actually working scripts? This is what I'm trying to use.
ScriptName RepeatableSummonEffectScript extends ActiveMagicEffectActor Property YourSummonREF Auto ; An ObjectReference will also work with the summon functionEvent OnEffectStart(Actor akTarget, Actor akCaster) Summon(akCaster, YourSummonREF)EndEvent; GetFormFromFile below to enable 'Global' flagFunction Summon(ObjectReference akSummoner = None, ObjectReference akSummon = None, Float afDistance = 150.0, Float afZOffset = 0.0, ObjectReference arPortal = None, Int aiStage = 0) Global While aiStage < 6 aiStage += 1 If aiStage == 1 ; Shroud summon with portal arPortal = akSummon.PlaceAtMe(Game.GetFormFromFile(0x0007CD55, "Skyrim.ESM")) ; SummonTargetFXActivator disables and deletes itself shortly after stage 5 ElseIf aiStage == 2 ; Disable Summon akSummon.Disable() ElseIf aiStage == 3 ; Move portal in front of summoner arPortal.MoveTo(akSummoner, Math.Sin(akSummoner.GetAngleZ()) * afDistance, Math.Cos(akSummoner.GetAngleZ()) * afDistance, afZOffset) ElseIf aiStage == 4 ; Move summon to portal akSummon.MoveTo(arPortal) ElseIf aiStage == 5 ; Enable summon as the portal dissipates akSummon.Enable() EndIf Utility.Wait(0.6) EndWhileEndFunction
0
6 Comments
Recommended Comments