CitizensNPC - LookClose then reset

Hello all, similar to many other server interactions (I was unable to find documentation on this) I wanted to see, how do you have an NPC lookclose when a player is near but then reset position to default once out of range? Thanks wayyy in advance!
23 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by .akron#0
Skullians
Skullians3w ago
I would recommend you move to ZNPCsPlus ;)
Akron
AkronOP3w ago
Noted, reviewed and seems like a much more end user friendly ver. of citizens. With that being said - I appreciate the feedback. Will need to review the wiki to see if there is a way to accomplish this in the interim unless you're aware of configuring this functionality
Skullians
Skullians3w ago
We use ZNPCsPlus and it has that exact functionality can't remember what the setting is
Akron
AkronOP3w ago
oh wtf
Skullians
Skullians3w ago
I'll check later also ZNPCsPlus is packet based so no extra entities on your server ^^
Akron
AkronOP3w ago
kk appreciate u dog
Skullians
Skullians3w ago
way more efficient than citizens np
Akron
AkronOP3w ago
that's insanely better im living in 2017 clearly
ProGamingDk
ProGamingDk3w ago
Also znpcplus has a converter From citizens
Akron
AkronOP3w ago
noted ty !! @ProGamingDk
Litning11
Litning113w ago
Is this a kinda 'universal' recommendation to move from citizens2 to znpc? as in, do it regardless of what you need em for
Skullians
Skullians3w ago
citizens is known for being laggy
Litning11
Litning113w ago
The packet based stuff is interesting, so does it lag clients more in compensation for the server not handling it or is it not noticable?
ProGamingDk
ProGamingDk3w ago
nope
Skullians
Skullians3w ago
no difference It’s just that citizens makes it an actual player entity, but there’s still packets being sent
ProGamingDk
ProGamingDk3w ago
just skips the entity stuff
Skullians
Skullians3w ago
plus the plugin itself is laggy not just the NPC entities
Litning11
Litning113w ago
interesting so visually and functionally they are the exact same? it's just behind the scenes different
Skullians
Skullians3w ago
yep exact same (citizens has a FEW more features like moving around etc but few rarely use that)
Litning11
Litning113w ago
oh rip i do actually use the walking feature for npcs lol makes spawn feel a bit more alive, but i think i can live without it
Kaludi
Kaludi3w ago
It wasnt documented, but these are the commands we ran for it to look close and then reset when players move away /npc select /npc pose --save Enchanter -d /npc lookclose (if you only want the head to move instead of the full body like we chose then /npc lookclose --headonly true
Akron
AkronOP3w ago
thanks an absolute million @Kaludi the moving citizens around can be a pita depending Finally got to test and this works awesome, again - tyvm

Did you find this page helpful?