Author Topic: JumpToLocation script basic help  (Read 313 times)

Legacy_DagNarus2

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
JumpToLocation script basic help
« on: March 06, 2013, 10:22:58 pm »


               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 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
JumpToLocation script basic help
« Reply #1 on: March 06, 2013, 10:35:36 pm »


               in OnUse oPC must be GetLastUsedBy();
               
               

               
            

Legacy_DagNarus2

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
JumpToLocation script basic help
« Reply #2 on: March 06, 2013, 10:49:07 pm »


               very good sir