Help with a companion

Post » Wed Dec 15, 2010 10:39 am

I have been working on creating a new companion and everything has been working well (follows, waits, guards ect), but for some reason the companion doesnt sneak when i do. I have gone through the script and packages, along with looking at other companion mod scripts but they just sneak automatically.

Does anyone have any idea on what I need to do to make the companion sneak when i do?
User avatar
Claire Vaux
 
Posts: 3485
Joined: Sun Aug 06, 2006 6:56 am

Post » Wed Dec 15, 2010 11:37 am

Set them to player teammate using SetPlayerTeammate 1 in your script.

Otherwise you would need to use their script to detect when the player IsSneaking, and setForceSneak 1 or 0 depending on what the player is doing. Much easier to just use the playerteammate function.
User avatar
Hearts
 
Posts: 3306
Joined: Sat Oct 20, 2007 1:26 am

Post » Wed Dec 15, 2010 11:01 am

Thank you Thank you Thank you. This has been annoying me for the past week. Amazing how such a little bit of script can make such a difference :)
User avatar
Jonathan Windmon
 
Posts: 3410
Joined: Wed Oct 10, 2007 12:23 pm


Return to Fallout 3