I've made these changes so far going off what you have done thank you, this is what it looks like right now.
Scriptname ZigguratSummonScript extends ObjectReference Const
ObjectReference Property XMarker Auto Const
ObjectReference Property XMarker02 Auto Const
ObjectReference Property XMarker03 Auto Const
ActorBase Property ZigguratSummonActor Auto Const
ActorBase Property ZigguratSummonActor02 Auto Const
ActorBase Property ZigguratSummonActor03 Auto Const
ObjectReference Property Actor01 Auto Const
ObjectReference Property Actor02 Auto Const
ObjectReference Property Actor03 Auto Const
;events
Event OnActivate(ObjectReference akActionRef)
if (akActionRef == Game.GetPlayer())
If(!Actor01 && !Actor02 && !Actor03) ;If none of the properties are filled spawn the actors
Actor01 = XMarker.PlaceActorAtMe(ZigguratSummonActor)
Actor02 = XMarker02.PlaceActorAtMe(ZigguratSummonActor02)
Actor03 = XMarker03.PlaceActorAtMe(ZigguratSummonActor03)
debug.Notification("test")
Else ;if any or all of the actors are alive then kill them and reset their properties.
(Actor01 As Actor).Kill()
(Actor02 As Actor).Kill()
(Actor03 As Actor).Kill()
Actor01.Delete(); this removes their bodies if you don't want that then you can remove these.
Actor02.Delete()
Actor03.Delete()
Actor01 = None
Actor02 = None
Actor03 = None
EndIf
ENDIF
EndEvent
Unfortunately I'm getting some compiling errors that make no sense to me. Compiling "ZigguratSummonScript"...C:\Users\AppData\Local\Temp\PapyrusTemp\ZigguratSummonScript.psc(26,3): property Actor01 on script zigguratsummonscript is read-only, you cannot give it a valueC:\Users\AppData\Local\Temp\PapyrusTemp\ZigguratSummonScript.psc(26,3): type mismatch while assigning to a none (cast missing or types unrelated)C:\Users\AppData\Local\Temp\PapyrusTemp\ZigguratSummonScript.psc(27,3): property Actor02 on script zigguratsummonscript is read-only, you cannot give it a valueC:\Users\AppData\Local\Temp\PapyrusTemp\ZigguratSummonScript.psc(27,3): type mismatch while assigning to a none (cast missing or types unrelated)C:\Users\AppData\Local\Temp\PapyrusTemp\ZigguratSummonScript.psc(28,3): property Actor03 on script zigguratsummonscript is read-only, you cannot give it a valueC:\Users\AppData\Local\Temp\PapyrusTemp\ZigguratSummonScript.psc(28,3): type mismatch while assigning to a none (cast missing or types unrelated)C:\Users\AppData\Local\Temp\PapyrusTemp\ZigguratSummonScript.psc(40,3): property Actor01 on script zigguratsummonscript is read-only, you cannot give it a valueC:\Users\AppData\Local\Temp\PapyrusTemp\ZigguratSummonScript.psc(41,3): property Actor02 on script zigguratsummonscript is read-only, you cannot give it a valueC:\Users\AppData\Local\Temp\PapyrusTemp\ZigguratSummonScript.psc(42,3): property Actor03 on script zigguratsummonscript is read-only, you cannot give it a valueNo output generated for ZigguratSummonScript, compilation failed. My actor object references are cont which I cant unckeck, not sure what im doing wrong there.