How do I tell an object to delete when a certain actor is ki

Post » Tue Nov 20, 2012 12:59 pm

So here's what I'm trying to do:

I have a locked door in my dungeon that can only open with a key. That key is on an altar which is surrounded by an art object (looks kinda like a force field) and a collision sphere. As you approach the altar you enter a trigger box which activates a draugr in a coffin (the setup from the ambush warehouse). Now what I would like is for the AO and CS to delete/disappear when the draugr is killed. But I'm tripping over myself trying to figure out what needs to be linked to what, and what event would need to be placed where and all sorts. I'm really confused. Can anybody give me some pointers?

Thanks.
User avatar
Darren
 
Posts: 3354
Joined: Wed Jun 06, 2007 2:33 pm

Post » Tue Nov 20, 2012 2:39 am

Add an OnDeath event script to the draugr.

Attach an Object Reference property to it, and select Specific Reference, then choose your object.

Do this for as many items you want deleting. Then in the OnDeath event, put

Object1.Delete()
Object2.Delete()

As many as you need :)
User avatar
Sabrina Steige
 
Posts: 3396
Joined: Mon Aug 20, 2007 9:51 pm

Post » Tue Nov 20, 2012 4:30 am

Great, I'll give this a go. Thanks a ton :]

Edit: Fantastic! It worked perfectly! Thank you so much. ^^
User avatar
Megan Stabler
 
Posts: 3420
Joined: Mon Sep 18, 2006 2:03 pm


Return to V - Skyrim