April 6, 20214 yr 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
April 6, 20214 yr 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
April 6, 20214 yr Author 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!
Create an account or sign in to comment