View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 01-02-2021 , 08:36   Re: [Tutorial] Creating brush entities
Reply With Quote #69

How to create invisible walls in CS:GO (maybe you can set a model?):

PHP Code:

        int entity 
CreateEntityByName("func_wall_toggle");
        
        if (
entity != -1)
        {
            
DispatchKeyValueVector(entity"origin"zoneInfo.vecOrigin);
            
            
DispatchSpawn(entity);
            
ActivateEntity(entity);    
            
            
SetEntityModel(entity"models/error.mdl");
            
SetEntProp(entityProp_Send"m_nSolidType"2);
            
            
SetEntPropVector(entityProp_Data"m_vecMins"zoneInfo.vecMins);
            
SetEntPropVector(entityProp_Data"m_vecMaxs"zoneInfo.vecMaxs);
            
            
SetEntProp(entityProp_Send"m_fEffects"GetEntProp(entityProp_Send"m_fEffects") | EF_NODRAW); 
        } 
__________________
Ilusion9 is offline