DrPepper715 Posted August 25, 2013 Author Share Posted August 25, 2013 Try calling Kill on the actor in the next frame after calling SetPlayerTeammate.I'm still A little new to scripting... :mellow: Link to comment Share on other sites More sharing options...
jazzisparis Posted August 25, 2013 Share Posted August 25, 2013 Try calling Kill on the actor in the next frame after calling SetPlayerTeammate.I suspected the timing might be problematic here, however calling Kill immediately after SetPlayerTeammate (and on the same frame), does seem to work as intended in this case. Now the NPC's health resets like it did before :sad:I tested the script on an NPC, and it works properly for me. :S Link to comment Share on other sites More sharing options...
DrPepper715 Posted August 25, 2013 Author Share Posted August 25, 2013 Try calling Kill on the actor in the next frame after calling SetPlayerTeammate.I suspected the timing might be problematic here, however calling Kill immediately after SetPlayerTeammate (and on the same frame), does seem to work as intended in this case. Now the NPC's health resets like it did before :sad:I tested the script on an NPC, and it works properly for me. :S Thats odd, is it the NPC's health or stats? Possibly armor, since its custom made. :confused: I have the script you made attached to my sneak script, do I still need the older script or should I just use yours? I'm very :confused: Link to comment Share on other sites More sharing options...
jazzisparis Posted August 25, 2013 Share Posted August 25, 2013 Only use the last script I posted. Set it to Object-type and attach it to the NPC (by attach I mean select it from the Script dropbox of the NPC). Link to comment Share on other sites More sharing options...
DrPepper715 Posted August 26, 2013 Author Share Posted August 26, 2013 (edited) Only use the last script I posted. Set it to Object-type and attach it to the NPC (by attach I mean select it from the Script dropbox of the NPC).I think that actually worked! Thanks so much jazzisparis! The thing is does the script have to display the message in game "U.S. Soldier is unconscious", and also they don't have the death sound that they should when they die. Is there a way to change that? and also they show up on the ingame world map as followers and I disable them with the console when I'm done using them but they still show up on the map? You don't have to answer those questions if you don't want to but again thanks for the help! :teehee: Also thanks to rickerhk as well! :thumbsup: to both of you! Edited August 26, 2013 by DrPepper715 Link to comment Share on other sites More sharing options...
jazzisparis Posted August 26, 2013 Share Posted August 26, 2013 The thing is does the script have to display the message in game "U.S. Soldier is unconscious"What the script does is kill the NPC the moment he/she falls unconscious. The message is hardcoded to display whenever that happens - it's not the script. ...and also they show up on the ingame world map as followers and I disable them with the console when I'm done using them but they still show up on the map?SetPlayerTeammate 0, then Disable (and also MarkForDelete). Link to comment Share on other sites More sharing options...
DrPepper715 Posted September 2, 2013 Author Share Posted September 2, 2013 The thing is does the script have to display the message in game "U.S. Soldier is unconscious"What the script does is kill the NPC the moment he/she falls unconscious. The message is hardcoded to display whenever that happens - it's not the script. ...and also they show up on the ingame world map as followers and I disable them with the console when I'm done using them but they still show up on the map?SetPlayerTeammate 0, then Disable (and also MarkForDelete). Hey jazzisparis, So I came across another thing in the GECK. I don't have the Setplayerteammate script set on these creature followers and they dont die,they are not essential,no setplayerteammate script or any other scripts"Invulnerable" is not ticked Help? Link to comment Share on other sites More sharing options...
jazzisparis Posted September 2, 2013 Share Posted September 2, 2013 Nothing comes to mind. Either attach your ESP here and direct me to the creatures in question's editor IDs, or upload it to Dropbox and send me a PM with the link. I can then have a look. Link to comment Share on other sites More sharing options...
Recommended Posts