[CS:GO] Check if entity is hidden to begin with
[CS:GO] Check if entity is hidden to begin with
How do I check if an entity is visible or not-visible for the player?
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: [CS:GO] Check if entity is hidden to begin with
I'd say it depends of the entity. Most toggleable ones carry their own Boolean flag to whether or not they should think every frame.
Re: [CS:GO] Check if entity is hidden to begin with
What about func_brush?
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: [CS:GO] Check if entity is hidden to begin with
Based on the SDK, func_brush is using an EntityEffects. Something like this should works:
Syntax: Select all
from entities.constants import EntityEffects
def is_func_brush_visible(brush):
return EntityEffects.NODRAW not in EntityEffects(brush.effects) # I don't fully remember if this should be .values or not here...
Re: [CS:GO] Check if entity is hidden to begin with
That worked thanks. I have some follow up questions. Is it possible to get the entities associated with a button (without having to press it).
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: [CS:GO] Check if entity is hidden to begin with
velocity wrote:That worked thanks. I have some follow up questions. Is it possible to get the entities associated with a button (without having to press it).
Please, create new threads. Makes the searches more efficient if unrelated questions are indexed separately.
Return to “Plugin Development Support”
Who is online
Users browsing this forum: No registered users and 121 guests