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
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
I would recommend you move to ZNPCsPlus ;)
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
We use ZNPCsPlus and it has that exact functionality
can't remember what the setting is
oh wtf
I'll check later
also ZNPCsPlus is packet based so no extra entities on your server ^^
kk appreciate u dog
way more efficient than citizens
np
that's insanely better
im living in 2017 clearly
Also znpcplus has a converter
From citizens
noted ty !! @ProGamingDk
Is this a kinda 'universal' recommendation to move from citizens2 to znpc?
as in, do it regardless of what you need em for
citizens is known for being laggy
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?
nope
no difference
It’s just that citizens makes it an actual player entity, but there’s still packets being sent
just skips the entity stuff
plus the plugin itself is laggy
not just the NPC entities
interesting
so visually and functionally they are the exact same? it's just behind the scenes different
yep exact same (citizens has a FEW more features like moving around etc but few rarely use that)
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
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
thanks an absolute million @Kaludi
the moving citizens around can be a pita depending
Finally got to test and this works awesome, again - tyvm