Jump to content

eNoodles

Members
  • Posts

    78
  • Joined

  • Last visited

  • Days Won

    1

eNoodles last won the day on July 27 2018

eNoodles had the most liked content!

Recent Profile Visitors

6,498 profile views

eNoodles's Achievements

Scout

Scout (1/15)

32

Reputation

Single Status Update

See all updates by eNoodles

  1. GetPartyMemberByIndex() doesn't work?

    Had the worst night ever scripting a little cutscene (so many bugs and limitations+my unorganization), and was wondering why my party members weren't doing anything. Tried using GetObjectByTag for the specific companions I had and everything worked...

    So is GetPartyMemberByIndex the problem? What alternative is there?

    1. Show previous comments  4 more
    2. JCarter426

      JCarter426

      That's strange, but it really wouldn't surprise me if those functions don't work in cutscenes. GetPartyMemberByIndex() I know relies on whom you're controlling (like when you switch control to use Trask to open the door) and you quite possibly aren't "controlling" anybody in a cutscene. I would've thought GetNexPC() wouldn't have that issue but perhaps not.

      Here's something else to try:

      object oPC = GetFirstPC();
      object oPM1 = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, 
                    PLAYER_CHAR_NOT_PC, oPC, 1, -1, -1, -1, -1);
      object oPM2 = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, 
                    PLAYER_CHAR_NOT_PC, oPC, 2, -1, -1, -1, -1);

       

    3. eNoodles

      eNoodles

      That works! Thanks

    4. JCarter426

      JCarter426

      Cool. Funny that such a roundabout method was needed, but good to know.

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines.