Jump to content

how do you make NPC follow you?


kert349

Recommended Posts

Hi

how can you make NPC (companion in this case) follow you when you fast travel / exit building?

the thing is i spawned NPC gave it follow package but it only follows until i leave the cell.

 

and when i come back it doesnt follow anymore, any one know why???

Link to comment
Share on other sites

ok, looked around a bit, to see if i can find an answer

this is from this thread here:

 

written by GodOfAlcohol

Ive written a script for my follower to follow me into interior Cells. For me it works, so Ill try to remember it ;)

 

ref MySelf

 

begin gamemode

if(MySelf != GetSelf)

set MySelf to GetSelf ; set MySelf variable to the Followers reference

endif

 

if(MySelf.HasBeenHired == 1 && MySelf.Waiting == 0

&& Player.IsInInterior == 1 && MySelf.IsInInterior == 0 )

MySelf.MoveTo Player 50,0,0

endif

end

 

 

 

The follower must have the following variables in his script:

Waiting - indicates he is not following you

HasBeenHired - idicates he already has been hired by the player

If the follower has other variables than these, you'll have to replace them in the code.

 

This script will move the follower in front of the player, when he enters an interior cell.

You'll have to add these code into the script of he follower you want to follow you (i.e. Clover's Script,Jericho's Script etc.)

When theres already a "begin Gamemode" block in the script, just add these contents into that block.

 

Hope it helps ;)

 

maybe this will help

Link to comment
Share on other sites

  • Recently Browsing   0 members

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