SourceUp Posted August 21, 2013 Share Posted August 21, 2013 Hi guys, so for example i installed Lord of the rings weapon mod and i got Saurons mace and when i hit somebody they fly quite high but don't die from one hit and than when they hit the ground they take no damage. So i was wondering is it possible to make fall damage from impact to an npc? Link to comment Share on other sites More sharing options...
EnaiSiaion Posted August 22, 2013 Share Posted August 22, 2013 Fall damage is based on lift-off height and impact height, trajectory does not matter. Try a script that detects when the actor stops ascending and starts descending, then give him a pushactoraway nudge on the way down. See Nailed to the Sky in Dwemerverse. Link to comment Share on other sites More sharing options...
EnaiSiaion Posted August 22, 2013 Share Posted August 22, 2013 (on phone, can't edit) The strength of the effect doesn't matter, it's just to start a new flight with a starting point in the sky. Link to comment Share on other sites More sharing options...
SourceUp Posted August 22, 2013 Author Share Posted August 22, 2013 Thank you for your answer, so it is possible with a script? Have you got a link to one? Sorry a bit of noob on this kind of things Link to comment Share on other sites More sharing options...
EnaiSiaion Posted August 22, 2013 Share Posted August 22, 2013 Add this to the magiceffect that causes the knockup, and make sure this magiceffect lasts long enough for the target to reach the top of its arc: Actor TheTarget Float TargetZPrev Float TargetZCur Event OnEffectStart(Actor akTarget, Actor akCaster) TheTarget = akTarget TargetZPrev = TheTarget.GetPositionZ() RegisterForSingleUpdate(0.1) EndEvent Event OnUpdate() TargetZCur = TheTarget.GetPositionZ() If TargetZCur < TargetZPrev GetCasterActor().PushActorAway(TheTarget,-1) Dispel() Else TargetZPrev = TargetZCur RegisterForSingleUpdate(0.1) EndIf EndEvent (I know about GetTargetActor() but this runs faster) Link to comment Share on other sites More sharing options...
SourceUp Posted August 22, 2013 Author Share Posted August 22, 2013 (edited) I appreciate it so much you helping me out and i really want to do this work, i google how to edit files and etc... So far i got till here, i found the enchantment, right clicked on it (EDIT) than right clicked (EFFECT) edit and now not sure where i have to add those lines. Thanks in advance http://i44.tinypic.com/24fydtl.jpg http://i41.tinypic.com/25ira4g.jpg Edited August 22, 2013 by SourceUp Link to comment Share on other sites More sharing options...
EnaiSiaion Posted August 22, 2013 Share Posted August 22, 2013 You now know the name of the magiceffect, now go to the category Magic Effects and locate it. Then open it and add a new script to the papyrus box at the bottom right. Name doesn't matter. Link to comment Share on other sites More sharing options...
SourceUp Posted August 22, 2013 Author Share Posted August 22, 2013 Thank you so much for your help, later on today i will test it out. Thanks Link to comment Share on other sites More sharing options...
SourceUp Posted August 22, 2013 Author Share Posted August 22, 2013 Hi EnaiSiaion sorry to bother you, this is what happens when i try to add the script, is it normal? I press yes? http://i43.tinypic.com/ja9d92.jpg Link to comment Share on other sites More sharing options...
SourceUp Posted August 24, 2013 Author Share Posted August 24, 2013 Can anyone help me? I really want to do this please Link to comment Share on other sites More sharing options...
Recommended Posts