Blaming player for target death regardless of damage source

Post » Tue Nov 20, 2012 3:29 am

A spell I'm working on has a chance of flinging the target into the air or off of a cliff. How can I make the player take blame for a death from fall damage or other environmental damage, such as Hazards?

I'm thinking of adding some kind of timed Ability Spell to the target that does something clever attached to the OnDying event, but I'm a bit unclear on the "clever" bit. OnDying already has the killer identified. I assume that if the target is dying through fall damage, the killer is None. If I do Target.Kill(Player) in the onDying event, will that blame the player properly?
User avatar
Amie Mccubbing
 
Posts: 3497
Joined: Thu Aug 31, 2006 11:33 pm

Post » Tue Nov 20, 2012 12:59 pm

I think the above could work very well if you actually resurrect them in an OnDying event then kill them with the player. You would cover pretty much any death scenario this way too.
User avatar
An Lor
 
Posts: 3439
Joined: Sun Feb 18, 2007 8:46 pm


Return to V - Skyrim