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.
Cheers Harmlezz