Aller au contenu

Photo

Area transition in conversation


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
simomate

simomate
  • Members
  • 83 messages
"Would you like to go there now?"

PC: "Yes"

When the PC clicks yes, he should appear at the destination

The tag I tried is:

void main()
{
    object oPC = GetPCSpeaker();
    object oWaypoint = GetObjectByTag("pod");
    AssignCommand,(oWaypoint);
}

but nothing happened. What am I missing out?

Modifié par simomate, 03 octobre 2010 - 09:20 .


#2
Fester Pot

Fester Pot
  • Members
  • 1 393 messages

void main()
{

object oPC = GetPCSpeaker();

object oTarget = GetWaypointByTag("pod");
location lTarget = GetLocation(oTarget);

if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;

oTarget=GetFirstFactionMember(oPC, FALSE);

while (GetIsObjectValid(oTarget))
{
AssignCommand(oTarget, ClearAllActions());
AssignCommand(oTarget, ActionJumpToLocation(lTarget));
oTarget=GetNextFactionMember(oPC, FALSE);
}

}


FP!

Modifié par Fester Pot, 03 octobre 2010 - 02:03 .


#3
simomate

simomate
  • Members
  • 83 messages
Worked like a charm! My deepest gratitude to you :D