NPC's teleporting

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Wolwer

Active Member
Feb 8, 2018
53
5
8
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:
set {_start} to 500 blocks ahead of player
set {_1} to 2 blocks at right side of player
set {_2} to 2 blocks at left side of player
set {_3} to 2 blocks in front of player
set {_4} to 3 blicks behined player

set {_name} to "Entity"
set {_npc } to npc named {_name}
spawn {_npc} at {_start}
set gravity of {_npc} to false
wait 20 ticks
make {_npc} attaking player
teleport {_npc} to {_1}
wait  2 ticks
teleport {_npc} to {_2}
wait 2 ticks
teleport {_npc} to {_3}
wait 2 ticks
teleport {_npc} to {_4}
set yaw of {_npc} to 90
set pitch  of {_npc} to 1
teleport {_npc} to {_4}
wait 1 tick
teleport {_npc} to {_4}
Wait 1 tick
teleport {_npc} to {_4}
#repet until 4seconds will pass
# 20 ticks = 1 sec
# 4 sec = 80 ticks
delete {_npc}
remove {_npc}



on damage:
    if attaker is {_npc}:
        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]

O1uNDyT.png

I hope, you will help me with this code :emoji_wink:

UP
[doublepost=1564344014,1564303572][/doublepost]Up
[doublepost=1564429515][/doublepost]up
[doublepost=1564567987][/doublepost]up
 
Status
Not open for further replies.