Are there any kill boxes?

Post » Sat Nov 17, 2012 6:32 am

Are there any kill boxes in the vanilla game? If so, what's the ID? Because I can't seem to find any, although I'm pretty sure I saw a few used in a mod I used a while ago. And by kill box, I mean an area where if your character passes through, he or she dies.
User avatar
Jessica Nash
 
Posts: 3424
Joined: Tue Dec 19, 2006 10:18 pm

Post » Sat Nov 17, 2012 12:37 am

If there isn't a vanilla one, i'm sure this could be accomplished by using a trigger box with a a script attached that kills the player when triggered

- Hypno
User avatar
Ymani Hood
 
Posts: 3514
Joined: Fri Oct 26, 2007 3:22 am

Post » Fri Nov 16, 2012 3:56 pm

If there isn't a vanilla one, i'm sure this could be accomplished by using a trigger box with a a script attached that kills the player when triggered

- Hypno
Alright, if I have to do a trigger, then I think a teleport trigger would be better than one that kills. What would the script look like?

Would this work?

Scriptname Pitfall extends ObjectReference  ObjectReference Property TeleportMarker autoEvent OnTriggerEnter(ObjectReference akActionRef)	int isRider = Game.GetPlayer().GetSitState ()		If ((akActionRef == Game.GetPlayer()) && (isRider == 0))				akActionRef.MoveTo(TeleportMarker)		EndIfEndEvent

Edit: Tried it out, and it works. Problem solved.
User avatar
Heather M
 
Posts: 3487
Joined: Mon Aug 27, 2007 5:40 am


Return to V - Skyrim