• bullet IgnoredEntities?
    3 replies, posted
I was looking here and I noticed you could make the bullet ignore entities. Does this mean it goes through them? I'm looking for a work around for if a player is hiding behind a prop. My LOS system detects if a player is hiding behind a prop but I don't know how to make it calculate a path around the prop so instead I want to just make it shoot through the prop.
Yes, it will cause the bullet trace to not hit the ignored entity.
I'm looking for some examples or documentation because right now just using 'bullet.IgnoreEntity = "prop_physics" doesn't work. I understand that's the class of the entity however I don't know how to use this option. I learn by example and looking around I couldn't find anyone else asking about or using this publicly.
You can only ignore one entity, and it has to be an entity object and not a class. You can use util.TraceLine to get the prop/player the gun is pointing at.
Sorry, you need to Log In to post a reply to this thread.