Hey! So the goal for this skript is to have this ability type item that allows you to create a helper that will stand still and shoot arrows towards the victim
Skript:
No errors but the arrow is spawning in the npc and just landing on the ground, it does not get pushed or sent anywhere.
Addons:
Skellet-Legacy
SkLunar
SkRayFall
Is there a better way to do this?
Thanks.
Skript:
Code:
on damage:
if name of tool of attacker is "&c&lArcher Ability":
create a citizen named "&c&l%attacker%&c&l's &c&lArcher" at attacker's location
set {_npc} to last created citizen
set {_npclocation} to attacker's location
loop 10 times:
wait 3 second
set {_loc2} to victim's location
summon an arrow at {_npclocation}
set {_arrow} to spawned entity
set {_vector} to new vector 0, 0, 0
set velocity of {_arrow} to {_vector}
shoot {_arrow} from {_npclocation} at speed 5 {_loc2}
remove citizen {_npc}
No errors but the arrow is spawning in the npc and just landing on the ground, it does not get pushed or sent anywhere.
Addons:
Skellet-Legacy
SkLunar
SkRayFall
Is there a better way to do this?
Thanks.