How i can make Zombie with targets

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

MrVlamis

Member
Apr 27, 2022
11
0
1
19
on rightclick:
if player's tool is a stick named "StraySpawner":
spawn a Zombie at player's location
set {_mob} to the last spawned entity
set {Mob.%last spawned entity%} to "%player%"
set display name of {_mob} to "%player%'s Zombie"
loop all entities in radius 10 around player:
if loop-entity is not a player:
if loop-entity is not {_mob}:
if {Mob.%last spawned entity%.%player%} is not {Mob.%last spawned entity%}:
set target of {_mob} to loop-entity

how i can make that Zombies at same team cant attack team members, that they only attack that other team
 
Status
Not open for further replies.