1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NPC's teleporting

Discussion in 'Skript' started by Wolwer, Jul 28, 2019.

Thread Status:
Not open for further replies.
  1. Wolwer

    Wolwer Active Member

    Joined:
    Feb 8, 2018
    Messages:
    53
    Likes Received:
    5
    Hi guys!
    I have an idea to create killaura npc, like in this video: (sorry for background music and bad cutting xd) (its a part of another guy's video. Link to original in desc)

    I think it can be created like this way:
    Code (Text):
    1. set {_start} to 500 blocks ahead of player
    2. set {_1} to 2 blocks at right side of player
    3. set {_2} to 2 blocks at left side of player
    4. set {_3} to 2 blocks in front of player
    5. set {_4} to 3 blicks behined player
    6.  
    7. set {_name} to "Entity"
    8. set {_npc } to npc named {_name}
    9. spawn {_npc} at {_start}
    10. set gravity of {_npc} to false
    11. wait 20 ticks
    12. make {_npc} attaking player
    13. teleport {_npc} to {_1}
    14. wait  2 ticks
    15. teleport {_npc} to {_2}
    16. wait 2 ticks
    17. teleport {_npc} to {_3}
    18. wait 2 ticks
    19. teleport {_npc} to {_4}
    20. set yaw of {_npc} to 90
    21. set pitch  of {_npc} to 1
    22. teleport {_npc} to {_4}
    23. wait 1 tick
    24. teleport {_npc} to {_4}
    25. Wait 1 tick
    26. teleport {_npc} to {_4}
    27. #repet until 4seconds will pass
    28. # 20 ticks = 1 sec
    29. # 4 sec = 80 ticks
    30. delete {_npc}
    31. remove {_npc}
    32.  
    33.  
    34.  
    35. on damage:
    36.     if attaker is {_npc}:
    37.         stop
    I know, that it isn't a working code. Just example how it can be created.
    Anyway I don't know how to do this...
    Also I have created a small scheme in paint. (Ik I'm bad painter) [P - Player, B - Bot]

    [​IMG]
    I hope, you will help me with this code :emoji_wink:

    UP
    --- Double Post Merged, Jul 28, 2019, Original Post Date: Jul 28, 2019 ---
    Up
    --- Double Post Merged, Jul 29, 2019 ---
    up
    --- Double Post Merged, Jul 31, 2019 ---
    up
     
Thread Status:
Not open for further replies.

Share This Page

Loading...