Difference between revisions of "Complete Example Scripts"
Jump to navigation
Jump to search
m
→Summon Spell: Flagged Summon function as ' Global'
imported>Ereksen m |
imported>JustinOther m (→Summon Spell: Flagged Summon function as ' Global') |
||
Line 660: | Line 660: | ||
EndEvent | EndEvent | ||
Function Summon(ObjectReference akSummoner = None, ObjectReference akSummon = None, Float afDistance = 150.0, Float afZOffset = 0.0, ObjectReference arPortal = None, Int aiStage = 0) | Function Summon(ObjectReference akSummoner = None, ObjectReference akSummon = None, Float afDistance = 150.0, Float afZOffset = 0.0, ObjectReference arPortal = None, Int aiStage = 0) Global ; GetFormFromFile below to enable 'Global' flag | ||
While aiStage < 6 | While aiStage < 6 | ||
aiStage += 1 | aiStage += 1 | ||
If aiStage == 1 ; Shroud summon with portal | If aiStage == 1 ; Shroud summon with portal | ||
arPortal = akSummon.PlaceAtMe(Game. | arPortal = akSummon.PlaceAtMe(Game.GetFormFromFile(0x0007CD55, "Skyrim.ESM")) ; SummonTargetFXActivator disables and deletes itself shortly after stage 5 | ||
ElseIf aiStage == 2 ; Disable Summon | ElseIf aiStage == 2 ; Disable Summon | ||
akSummon.Disable() | akSummon.Disable() | ||
Line 677: | Line 677: | ||
EndWhile | EndWhile | ||
EndFunction</source> | EndFunction</source> | ||
= Show Gift Inventory and Identify Items Given = | = Show Gift Inventory and Identify Items Given = |