My NPCs aren't gaining XP with the pc, nor do they appear to have any AI (they won't follow the PC around)
I use this function to initialize them, then I have to set their XP.
Is there anything wrong with this?
void PrepCompanion( string sTag, string sWP )
{
object oWP = GetWaypointByTag( sWP );
RemoveRosterMember( sTag );
AddRosterMemberByTemplate( sTag, sTag );
SpawnRosterMember( sTag, GetLocation( oWP ) );
SetIsRosterMemberSelectable( sTag, 0 );
SetIsRosterMemberCampaignNPC( sTag, 0 );
}
Why aren't my NPCs working?
Débuté par
FlashElf
, mars 05 2011 08:07
#1
Posté 05 mars 2011 - 08:07
#2
Posté 05 mars 2011 - 09:30
#3
Posté 05 mars 2011 - 09:47
Thanks, that was very helpful
#4
Posté 05 mars 2011 - 11:56
Here is a thread that explains the commands for adding companions. Other threads can be found by googling for nwn2 companion scripts.
Regards
Regards





Retour en haut






