Closed TheRealWHfan closed 6 years ago
Er...
Is this meant to be a request to have a way to make NPCs target a specified squad? (Like, /sentinel addtarget squad:baddudesquad
)
(Guessing based on Discord chatter that led to you posting this)
Oh I found the /sentinel squad SQUAD - Sets the NPC's squad name (null for none). so I thought I could target other squads because I saw the sbteam:SCOREBOARD_TEAM_HERE. Well I guess that's not a feature so how do I make a npc target a certain scoreboard team in java code? Because if I use a for loop and use the .addtarget to add all the uuid in a scoreboard then if new uuids join the scoreboard team it will create lag from using loops to add the new person as a target to every npc. So is there a way I can just put all the entites that are in the scoreboard team as targets without looping to update every npc to target the new person that joined the scoreboard team?
This issue is a feature request post. That target option isn't available now but that's exactly why I mentioned to post on here. So that it would be listed as a thing to be added in the near future and would become available.
And scoreboard teams are currently just handled in the SentinelTrait#otherTargets
list, as they're not common enough to need to bother with a dedicated listing.
Added in build DEV-176+ on http://ci.citizensnpcs.co/job/Sentinel/
I have spigot 1.12.2 I have citizens-2.0.22-SNAPSHOT I have sentinel-1.5.0