I've looked up kill scripts but most kill scripts I've seen, seem to involve npcs killing npcs, which is not what I am aiming for. The script which for all I know doesn't have the functions I want, is as follows. I even clicked on the actor I wanted the script to kill with reference, and it still does nothing.
Spoiler
Scriptname ALectraMurderGiantSkellington Extends ObjectReference
Actor Property kSomeActorRef Auto
Event OnTriggerEnter(ObjectReference akActionRef) ; Unless there is an auto state, stuff will start in empty state
If akActionRef == Game.GetPlayer()
Utility.Wait(5.0) ; This wants a float and not an int. Avoid unnecessary autocast
Debug.MessageBox("Deprived of the power of the crystal, the colossal skeleton falls to the ground with a massive thump")
kSomeActorRef.Kill()
GoToState("Done")
EndIf
EndEvent
State Done
Event OnTriggerEnter(ObjectReference akActionRef) ; Empty event to override empty state when applicable
; Do nussink
EndEvent
EndState
Actor Property kSomeActorRef Auto
Event OnTriggerEnter(ObjectReference akActionRef) ; Unless there is an auto state, stuff will start in empty state
If akActionRef == Game.GetPlayer()
Utility.Wait(5.0) ; This wants a float and not an int. Avoid unnecessary autocast
Debug.MessageBox("Deprived of the power of the crystal, the colossal skeleton falls to the ground with a massive thump")
kSomeActorRef.Kill()
GoToState("Done")
EndIf
EndEvent
State Done
Event OnTriggerEnter(ObjectReference akActionRef) ; Empty event to override empty state when applicable
; Do nussink
EndEvent
EndState