This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Crash when I look to Entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RapZzw3rR
Member
Join Date: May 2012
Location: Romania
Old 09-08-2013 , 17:16   Crash when I look to Entity
Reply With Quote #1

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.
RapZzw3rR is offline
SpaWn2KiLl
Member
Join Date: Aug 2012
Old 09-08-2013 , 17:17   Re: Crash when I look to Entity
Reply With Quote #2

I don't know how to code entities but I'm almost sure that is a model problem...
__________________
SpaWn2KiLl is offline
RapZzw3rR
Member
Join Date: May 2012
Location: Romania
Old 09-08-2013 , 17:27   Re: Crash when I look to Entity
Reply With Quote #3

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

Last edited by RapZzw3rR; 09-08-2013 at 17:38.
RapZzw3rR is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 09-10-2013 , 09:05   Re: Crash when I look to Entity
Reply With Quote #4

Quote:
Originally Posted by RapZzw3rR View Post
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)
__________________
simanovich is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:43.


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