Aller au contenu

Photo

JumpToLocation script basic help


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

#1
DagNarus2

DagNarus2
  • Members
  • 15 messages
Ok so I haev a magic well and when onUse i want this script to jump the player to the forest,
why isn't it working??


void main()
{

object oPC = GetPCSpeaker();
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("forest");
lTarget = GetLocation(oTarget);
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}

Modifié par DagNarus2, 07 mars 2013 - 03:19 .


#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
in OnUse oPC must be GetLastUsedBy();

#3
DagNarus2

DagNarus2
  • Members
  • 15 messages
very good sir