AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Crash when I look to Entity (https://forums.alliedmods.net/showthread.php?t=225757)

RapZzw3rR 09-08-2013 17:16

Crash when I look to Entity
 
I have this code:
PHP Code:

for( new 0MAX_ZONESi++ )
            
CreateZone(g_flMins[i], g_flMaxs[i]); 

PHP Code:

CreateZone(const FloatflMins[3], FloatflMaxs[3])
{
    new 
iEnt create_entity(g_szInfoTarget);
        
    if( !
is_valid_ent(iEnt) )
        return 
PLUGIN_CONTINUE;
    
    
entity_set_string(iEntEV_SZ_classnameg_szZonesClassName);
    
entity_set_int(iEntEV_INT_movetypeMOVETYPE_FLY);
    
entity_set_int(iEntEV_INT_solidSOLID_BBOX);
    
entity_set_size(iEntflMinsflMaxs);
    
    return 
PLUGIN_CONTINUE;


Good, this work, the entity is created and I can't pass through it but when I look to entity server get crash.

Thanks.

SpaWn2KiLl 09-08-2013 17:17

Re: Crash when I look to Entity
 
I don't know how to code entities but I'm almost sure that is a model problem...

RapZzw3rR 09-08-2013 17:27

Re: Crash when I look to Entity
 
I wanna create a Entity like a wall but invisible. I'd prefer to not be able to shoot throught it.

simanovich 09-10-2013 09:05

Re: Crash when I look to Entity
 
Quote:

Originally Posted by RapZzw3rR (Post 2030960)
I wanna create a Entity like a wall but invisible. I'd prefer to not be able to shoot throught it.

If you wanna create an invisiable wall, create an entity named "func_wall", set the Render Mod to "Texture" and the FX Amount to 1. (1 - Invisiable, 155 - to see through a glass wall, 255 - totaly visiable)


All times are GMT -4. The time now is 19:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.