• Entity touching halp
    3 replies, posted
Was wondering how I would go about making it so when one of the entities I have created touches another some kind of reaction will happen, so basically looking for something that checks like IfTouching basically. Idk if this matters but both of the entities are spawned through the F4 menu on my darkrp test server.
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/ENTITY/Touch]ENTITY/Touch[/url]
Thanks but now if I wanted to do like: if entity == (my custom entity) then What would in my custom entity?
if entity:GetClass() == "your_custom_entity_class" then.... Each entity has an class, if I remember its the folder name of the ent, I rarely code entities, sorry. Just try it out.
Sorry, you need to Log In to post a reply to this thread.