Jump to content

Photo

Follower not dying (even though he is not essential)?


  • Please log in to reply
17 replies to this topic

#11
DrPepper715

DrPepper715

    Enthusiast

  • Members
  • PipPip
  • 138 posts

Try calling Kill on the actor in the next frame after calling SetPlayerTeammate.

I'm still A little new to scripting...  :mellow:



#12
jazzisparis

jazzisparis

    The baby-eating Bishop of Bath and Wells

  • Supporter
  • PipPipPipPip
  • 2,098 posts

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



#13
DrPepper715

DrPepper715

    Enthusiast

  • Members
  • PipPip
  • 138 posts

 

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:  



#14
jazzisparis

jazzisparis

    The baby-eating Bishop of Bath and Wells

  • Supporter
  • PipPipPipPip
  • 2,098 posts

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).



#15
DrPepper715

DrPepper715

    Enthusiast

  • Members
  • PipPip
  • 138 posts

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 by DrPepper715, 26 August 2013 - 12:31 AM.


#16
jazzisparis

jazzisparis

    The baby-eating Bishop of Bath and Wells

  • Supporter
  • PipPipPipPip
  • 2,098 posts

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).



#17
DrPepper715

DrPepper715

    Enthusiast

  • Members
  • PipPip
  • 138 posts

 

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?



#18
jazzisparis

jazzisparis

    The baby-eating Bishop of Bath and Wells

  • Supporter
  • PipPipPipPip
  • 2,098 posts

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.






Page loaded in: 1.897 seconds