Hybris Posted April 6, 2021 Share Posted April 6, 2021 Hello, I'm working on a thieving script and it works fine, but when I go to the bank and come back to the area, it seems to missplace the NPC entity and I can't interact with it anymore. I've checked and the npc is not null, it even has the correct actions. I added a line to draw the outline of the NPC and when this happens, it's just on a random square instead of on the actual NPC. Also interesting to note that when I restart the script, it still seems to select this random square instead of the NPC, unless I refresh my scripts. Any ideas? Using mirror mode btw. Thanks, Hybris Quote Link to comment Share on other sites More sharing options...
Camaro Posted April 6, 2021 Share Posted April 6, 2021 The entity probably no longer exists. When you walk far enough away and the region reloads, if the entity ends up outside of the new region, the entity will "despawn" from your local client just check the .exists() method 1 Quote Link to comment Share on other sites More sharing options...
Hybris Posted April 6, 2021 Author Share Posted April 6, 2021 1 hour ago, Camaro said: The entity probably no longer exists. When you walk far enough away and the region reloads, if the entity ends up outside of the new region, the entity will "despawn" from your local client just check the .exists() method That worked, thanks a lot! Quote Link to comment Share on other sites More sharing options...