• Any hook/function to check if a player is near an entity?
    1 replies, posted
Hi so I am just making a basic scripted entity and decided to make it so that if a player gets near an entity the entity will jump backwards away from the player. So far I have the basic entity made and it can be spawned but I can't find anything on the wiki or google about my problem so here I am.
ENTITY/Think ents.FindInSphere or ents.FindInBox or ents.FindInCone example function ENT:Think() local entTbl = ents.FindInSphere( self:LocalToWorld( self:OBBCenter() ), 200 ) for i = 1, #entTbl do print( entTbl[ i ] ) end end
Sorry, you need to Log In to post a reply to this thread.