Jump to content

[HELP] How can I access IsoDeadBody instances ?


Tchernobill

Recommended Posts

Hi,

 

I want to interact with dead zombie inventory.

Decompiling IsoDeadBody and IsoZombie lead me to a dead end (but infortunately not to the dead corpse).

 

Ideally I wanna do something like

function MyFunction(theNewlyCreatedIsoDeadBodyInstance)
    --my fancy stuff
end
Events.OnIsoDeadBodyCreation.Add(MyFunction);

Do you know how to get the equivalent of that ?

Do you know how to access the collections of existing instances of IsoDeadBody ?

 

I have trying doing my fancy stuff with the Zombie at it's death time (OnZombieDead / OnCharacterDeath) but I meet two problems:

- I get no access to invisible objects (I only get attached objects and clothing). I want the other objects.

- Modifications I apply on clothing are not applied on the dead body (reload corrects this as well as any item transfer with the body, but I am unable to force the refresh)

 

Thanx for reading me

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...