Someone knows a "no loot script" for actors?

Post » Tue Nov 20, 2012 6:41 am

Hi,

i want to ask, if someone knows a "no loot script" to make it impossible to loot certain dead actors.
I need this because i have a spawning arena and i don't want that the bodys of the opponents can be looted until they disappears (what happens with a script who fires 3 seconds after they died)

Help, ideas or links would be nice!

Thanks in advance

Eru
User avatar
Carlitos Avila
 
Posts: 3438
Joined: Fri Sep 21, 2007 3:05 pm

Post » Mon Nov 19, 2012 11:16 pm

Does the BlockActivation() function work on dead actors? That might do what you're looking for.
User avatar
Allison Sizemore
 
Posts: 3492
Joined: Wed Jul 19, 2006 6:09 am

Post » Tue Nov 20, 2012 7:46 am

Yep BlockActivation() works a treat, I use it a lot :smile:

Scriptname BlockLoot extends ObjectReference  Event OnLoad(); OnDeath would work to, attach the script to the actor base itself. BlockActivation(true)EndEvent
User avatar
Chantel Hopkin
 
Posts: 3533
Joined: Sun Dec 03, 2006 9:41 am

Post » Tue Nov 20, 2012 10:08 am

Thank you for this fast reply. I'm trying it this evening!
User avatar
butterfly
 
Posts: 3467
Joined: Wed Aug 16, 2006 8:20 pm

Post » Tue Nov 20, 2012 12:31 am

Hi,

i want to ask, if someone knows a "no loot script" to make it impossible to loot certain dead actors.
I need this because i have a spawning arena and i don't want that the bodys of the opponents can be looted until they disappears (what happens with a script who fires 3 seconds after they died)

Help, ideas or links would be nice!

Thanks in advance

Eru

The above comments will certainly serve you well but its also possible to create duplicates of whatever equipment you want those NPC's to have that is marked as "unplayable". This is what allows vanilla Dremora's to have Daedric armour that you can't loot from them.

*EDIT: SetDestroyed should also work essentially the same as BlockActivation for your dead actors.
*EDIT2: SetDestroyed is much more concise. BlockActivation isn't infallible due to whichever Event(s) it is coded into.
User avatar
Julie Ann
 
Posts: 3383
Joined: Thu Aug 23, 2007 5:17 am

Post » Mon Nov 19, 2012 8:51 pm

Thank you all for your replys.

This BlockLoot worked fine. I have mentioned you in my credits as a thank you ;)
User avatar
Taylah Haines
 
Posts: 3439
Joined: Tue Feb 13, 2007 3:10 am


Return to V - Skyrim