Jump to content

G.E.C.K command to make companions go unconscious so they don't di


ozzy561

Recommended Posts

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

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

the provided script is to make the companion DIE not live

If you want the companion to die

and 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

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

Okay well that does work, and he does go unconscious

that 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 mod

and of course how to set the reference

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...