Jump to content

Activating a corpse


Recommended Posts

You can try adding a hidden perk to the player that has the Entry Point Add Death Item (uses a Leveled List). The list can have a 100 percent chance of adding an item, and then you put in a non-playable armor item with either a gamemode script or an OnAdd (not sure if that block fires when added this way).
Link to comment
Share on other sites

@gribble: That sounds like it would work, maybe. I'm hoping to have the activated corpse affect its surroundings. Would any script on the item still be active if the owner is dead?

@GrindedStone: That part I have down. I used something like cannibal for an interface.

 

What ID would I use to reference the corpse? Is there a reference ID for , like, currently or last activated object? Like there is for last targeted, you know?

Edited by LucidDreaming
Link to comment
Share on other sites

Not entirely sure what your context is, but yes, as far as I know, any object in a rendered actor's inventory will run its script. You would use a game mode block, and to figure out where it is, you use:

set rContainer to GetContainer ;where rContainer is a ref variable
if rContainer  ;check to insure that it's a valid ref, otherwise the script might crash
;do something here
endif

I'm pretty sure I got that right. If you're confused, look at EVE for examples of how to run stuff on dead actors. It's a bit messy in there (the plugin), but he does a lot of what (I think) you're trying to do.

Link to comment
Share on other sites

Like this?

 

ref rContainer

set rContainer to GetContainer
if rContainer.isActor
rContainer.additem Glasses 1
end

 

It's not working...

 

Edit:I could try making it so that if you kill someone, then it adds something to their inventory. It would be much easier (they have codes similar to that already), but it would only work on something you have killed....

Edited by LucidDreaming
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...