ozzy561 Posted March 7, 2012 Share Posted March 7, 2012 Hi,I just installed G.E.C.K today and made a companion that follows me about etc etc. But what I REALLY want changing is his death. Unlike any other companion (not in hardcore mode), my companion will die permanently after his health being reduced. I've already tried ticking off the 'Essential' box on the NPC object box thing, but that didn't work. Can someone please help me, so my companion can just simply go unconscious if hurt.Thanks Link to comment Share on other sites More sharing options...
rickerhk Posted March 7, 2012 Share Posted March 7, 2012 The game ignores the 'essential' bit if you aren't in hardcore. If you want the companion to die in non hardcore, you have to add something like this to their NPC script: scn myNPCScript BEGIN GameMode ; =========== See if we should be dead ================== if (Player.IsHardCore == 0) if (GetDead == 0) if (GetKnockedState == 1) ;unconscious SetPlayerTeamMate 0 Kill endif endif endif END You still get the 'so and so is unconscious' message, but this is what I use in the Enclave Commander mod and it works. Link to comment Share on other sites More sharing options...
ozzy561 Posted March 8, 2012 Author Share Posted March 8, 2012 Ok thanks so do I just copy and paste that without changing anything? Like notihing at all? Link to comment Share on other sites More sharing options...
ozzy561 Posted March 8, 2012 Author Share Posted March 8, 2012 I copied and pasted it on my script as 'Object' but I can't see it under the dropdown list anywhere Link to comment Share on other sites More sharing options...
Fonger Posted March 8, 2012 Share Posted March 8, 2012 the provided script is to make the companion DIE not liveIf you want the companion to dieand the interesting line is "SetPlayerTeamMate 0" so "SetPlayerTeamMate 1" will likely put the companion into the system properly(presuming the refid is set) Link to comment Share on other sites More sharing options...
ozzy561 Posted March 8, 2012 Author Share Posted March 8, 2012 Oh my god thanks for the reply, I would have never done it without you!I'll check if that works right now & thank you again. Link to comment Share on other sites More sharing options...
ozzy561 Posted March 8, 2012 Author Share Posted March 8, 2012 And no, it didn't work. :'( Link to comment Share on other sites More sharing options...
Fonger Posted March 8, 2012 Share Posted March 8, 2012 And no, it didn't work. :'(experiment open console click on the companion in question (sets the reference) then type SetPlayerTeamMate 1 note there are no spaces in the command except before the 1 close console open console click on companion again type kill Link to comment Share on other sites More sharing options...
ozzy561 Posted March 8, 2012 Author Share Posted March 8, 2012 Okay well that does work, and he does go unconscious, but what if I was to upload this mod to the Nexus? Won't everyone who downloads it have to type in that console command? Link to comment Share on other sites More sharing options...
Fonger Posted March 8, 2012 Share Posted March 8, 2012 Okay well that does work, and he does go unconsciousthat confirms that you are on the correct track now you gotta figure out how to incorporate it into the companion joins you section of your modand of course how to set the reference Link to comment Share on other sites More sharing options...
Recommended Posts