Creating a killing collision box

Post » Thu Jun 21, 2012 6:47 am

I want to make sure a pit trap kills the player and he wont get stuck in there, how do I create an invinsible kill trigger?
User avatar
Setal Vara
 
Posts: 3390
Joined: Thu Nov 16, 2006 1:24 pm

Post » Thu Jun 21, 2012 8:09 am

Attach a script to your trigger that has the following:

event OnTriggerEnter(ObjectReference akActionRef)  if akActionRef==Game.GetPlayer()	 (akActionRef as Actor).KillSilent()  endIfendEvent

I think that would work.
User avatar
jessica Villacis
 
Posts: 3385
Joined: Tue Jan 23, 2007 2:03 pm

Post » Thu Jun 21, 2012 4:15 pm

Worked perfect. Thank you!

Used the script with a trigger box to make an unsurvivable fall.
User avatar
Eire Charlotta
 
Posts: 3394
Joined: Thu Nov 09, 2006 6:00 pm

Post » Thu Jun 21, 2012 4:29 pm

is it possible to use this script on a trigger box that calls a teleport?
User avatar
The Time Car
 
Posts: 3435
Joined: Sat Oct 27, 2007 7:13 pm

Post » Thu Jun 21, 2012 3:46 pm

I don't see why not.
User avatar
bimsy
 
Posts: 3541
Joined: Wed Oct 11, 2006 3:04 pm

Post » Thu Jun 21, 2012 11:19 am

and what is the code for the teleport?
User avatar
katsomaya Sanchez
 
Posts: 3368
Joined: Tue Jun 13, 2006 5:03 am


Return to V - Skyrim