Desolatesins Posted May 8, 2010 Share Posted May 8, 2010 I'm making a simple script, and I want to knock someone down - and not let them be able to get back up until a certain time has passed. So far I just set the fatigue of the victim to a negative number, then knock him down and let loops handle the rest. This takes care of that part, but the next part stumps me, again, this is probably because I can't find a site that has good documentation of class functions(the TES wiki is ok, but still under documented) (a link would be appreciated!). I want to make the ragdolled body DRAGGABLE. When you knock an essential NPC out, the game does something to him that let you drag him - but he is still alive. Unconscious is also in effect but it does not let you drag the bodies. So far I have to kill him to drag him, but there must be another way. How can I set an NPC to be draggable? Thanks for the help! Link to comment Share on other sites More sharing options...
angelwraith Posted May 8, 2010 Share Posted May 8, 2010 I'm making a simple script, and I want to knock someone down - and not let them be able to get back up until a certain time has passed. So far I just set the fatigue of the victim to a negative number, then knock him down and let loops handle the rest. This takes care of that part, but the next part stumps me, again, this is probably because I can't find a site that has good documentation of class functions(the TES wiki is ok, but still under documented) (a link would be appreciated!). I want to make the ragdolled body DRAGGABLE. When you knock an essential NPC out, the game does something to him that let you drag him - but he is still alive. Unconscious is also in effect but it does not let you drag the bodies. So far I have to kill him to drag him, but there must be another way. How can I set an NPC to be draggable? Thanks for the help! possible medhod:set them to essentialkill the npcat the end of the timer resurrect them problem with this method.when you kill npcs they reroll a lot of their stats when being resurected.. so they may not have the same inventory or same behavior when killed..idk.. if its some random raider youre killing who gives a crap.. but if its a companion this could lead to major issues. also when ersurrecting dead npcs there is an issue.. if you resurrect them over a non navmeshed area their resurrection can go kinda screwy.. sometimes its better to let them move themselves around Link to comment Share on other sites More sharing options...
Desolatesins Posted May 8, 2010 Author Share Posted May 8, 2010 Yeah, I thought of that but setting an NPC essential can be problematic... For instance, if I set him to essential, kill him, shoot him, whatever that would originally kill him - he will be limp and I can drag him yes, but I cannot search him - it will say he is unconscious even though a getUnconscious will return 0. Futhermore if I remove the essential flag while he's knocked out he will be in the essential status permanently, so I can blow his head off but it will still say "He's unconscious" and he will never wake up, but he won't be dead. Link to comment Share on other sites More sharing options...
Recommended Posts