• Making IsNPC() work for nextbots
    1 replies, posted
I've just started learning about nextbots and I ran into a problem. My script utilizes IsNPC() function a lot and when I was writing my script I thought that nextbots are npcs and I won't have a problem. Sadly I do and I don't know how to fix it. Saw this: Is there anyway to make a Nextbot be recognized as a NPC? But it didn't work for me. Do you have any suggestions? Thanks.
Nope, you 'll have to change all instances to check if the entity is a nextbot. Here's an example function implementation (will only work serverside): local ENTITY = FindMetaTable("ENTITY") local NEXTBOT = FindMetaTable("NextBot") function ENTITY:IsNextBot() return getmetatable(self) == NEXTBOT end
Sorry, you need to Log In to post a reply to this thread.