dearrrfish Posted April 4, 2012 Share Posted April 4, 2012 (edited) Hi, I just start to learn on making mods. I am trying to get current damage/ or weapon damage in scripts. After two days of searching, I found nothing online. To clarify my problem, what I am doing is a skill to assassin target. I want to calculate if the damage made by weapon is enough to kill instantly, so I want to get the current weapon damage / or damage ( just like it shows on the bottom of item menu) to compute within my attack damage formula. Do you guys have some good advice? Edited April 4, 2012 by dearrrfish Link to comment Share on other sites More sharing options...
MofoMojo Posted April 4, 2012 Share Posted April 4, 2012 Hi, I just start to learn on making mods. I am trying to get current damage/ or weapon damage in scripts. After two days of searching, I found nothing online. Do you guys have some good advice? There's nothing really useful for determining how much damage a weapon has done. I'm not sure if damage is applied BEFORE or AFTER the OnHit event triggers, but you could try something along these lines. Monitor the actors health in a tight OnUpdate() loop, say every .25 seconds. Keep it lean, only enough to track the current health. Then in an OnHit event have it compare the players last tracked health with the current health and see if they are different. Obviously timing will be a factor here but it might...approximate...what you're after. -MM Link to comment Share on other sites More sharing options...
dearrrfish Posted April 4, 2012 Author Share Posted April 4, 2012 Hi, I just start to learn on making mods. I am trying to get current damage/ or weapon damage in scripts. After two days of searching, I found nothing online. Do you guys have some good advice? There's nothing really useful for determining how much damage a weapon has done. I'm not sure if damage is applied BEFORE or AFTER the OnHit event triggers, but you could try something along these lines. Monitor the actors health in a tight OnUpdate() loop, say every .25 seconds. Keep it lean, only enough to track the current health. Then in an OnHit event have it compare the players last tracked health with the current health and see if they are different. Obviously timing will be a factor here but it might...approximate...what you're after. -MM Thanks for your reply. What I want is to know the damage actor can make before it did hit target.References of Creation kit mention almost nothing about Weapon Script. :( Link to comment Share on other sites More sharing options...
Recommended Posts