How to dismiss a follower from a quest stage?

Post » Wed Jun 20, 2012 1:47 am

I've never been really clear on how to use a function from one quest in another quest's stage. Here's what I'm trying to do in the fragment:

Alias_RoseliaPrevolve.GetReference().DismissFollower()Alias_RoseliaPrevolve.GetReference().disable()Alias_PKRoseradeEvolve.GetReference().enable()Alias_PKRoseradeEvolve.RegisterforSingleUpdate(1)  

I have the script extending DialogueFollowerScript, but it says that "DismissFollower is not a function". How do I get it to recognize functions from other scripts?
User avatar
CRuzIta LUVz grlz
 
Posts: 3388
Joined: Fri Aug 24, 2007 11:44 am

Post » Wed Jun 20, 2012 11:16 am

There's a SetTeammate function, but no GetTeammate function...not sure how to find the hook for the current teammate in order to dissmiss them...if you can get the follower reference, you could just do a Disable() on them, and then do an Enable() at the end of the quest.
User avatar
Big mike
 
Posts: 3423
Joined: Fri Sep 21, 2007 6:38 pm

Post » Wed Jun 20, 2012 2:31 am

There's a SetTeammate function, but no GetTeammate function...not sure how to find the hook for the current teammate in order to dissmiss them...if you can get the follower reference, you could just do a Disable() on them, and then do an Enable() at the end of the quest.

If I disable it does it automatically set my TeamMateCount such that I can get another animal companion?
User avatar
Donald Richards
 
Posts: 3378
Joined: Sat Jun 30, 2007 3:59 am

Post » Wed Jun 20, 2012 4:57 am

You can use SetTeammate to clear teammate status. The first arg is a bool : true for set, false for clear.

I'm not sure if that stops them following you though. You may need to clear the follower package as well.
User avatar
Matthew Barrows
 
Posts: 3388
Joined: Thu Jun 28, 2007 11:24 pm


Return to V - Skyrim