Author Topic:  Help needed scripting teleporting item  (Read 291 times)

0 Members and 1 Guest are viewing this topic.

byodinsbeard13

  • Jr. Member
  • **
  • Posts: 20
    • View Profile
    • Awards
  • Xbox: byodinsbeard13
Help needed scripting teleporting item
« on: September 14, 2017, 11:02:59 PM »
I need help making a scriot assined to a wand that teleports the player I swung to a certain x y z cordinatee

crazytater94

  • Supreme Member
  • *****
  • Posts: 2586
  • Mastering TM since 2011
  • Awards Awarded to exemplary forum members Members who have unlocked the robotic avatar 3 years on site+600 posts 2 years on site+300 posts Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site+100 posts
    • View Profile
    • Awards
  • Xbox: crazytater94
  • PSN: crazytater94 (Inactive)
  • Steam: crazytater94
Re: Help needed scripting teleporting item
« Reply #1 on: September 15, 2017, 02:33:10 AM »
Script 1: run this before testing. Maybe in a player joins script.

SetEventScript [ItemSwing] [wand] [script2]


Script 2:
Teleport [player] [xyz]


Should work, but I've been working so much overtime, I haven't scripted in a good while, the phrasing may be off.

byodinsbeard13

  • Jr. Member
  • **
  • Posts: 20
    • View Profile
    • Awards
  • Xbox: byodinsbeard13
Re: Help needed scripting teleporting item
« Reply #2 on: September 18, 2017, 05:25:08 PM »
Thanks it was a total success im using it to be used for cops to teleport prisoners to their cells