Help - Actor.getCauseOfDeath

Post » Wed Sep 05, 2012 1:27 am

Hi,

i do not get the function Actor.getCauseOfDeath to work. What i did:
  • added an Entry Point to a perk with Add Leveled List On Death adding always one item. I made sure my expectation, the item gets put into the corpse of my victim, is correct by adding one stimpak.
  • the item I add is a scripted item (has a script attached) and the script does run in a GameMode block.
  • in the script I set container to getContainer and on that container I call container.getCauseOfDeath which always returns 0.
What am I doing wrong? I can kill the creature with whatever weapon but always get back 0. If anyone knows how to do it the right way, please let me know.

Cheers Harmlezz
User avatar
Pumpkin
 
Posts: 3440
Joined: Sun Jun 25, 2006 10:23 am

Return to Fallout 3