Raised This Month: $ Target: $400
 0% 

Solved Problem with entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
The overrated maniac
Member
Join Date: Jun 2021
Location: Argentina
Old 10-28-2021 , 15:08   Problem with entity
Reply With Quote #1

When I spawn it shutdowns the server.

PHP Code:
CreateCal(const Float:vOrigin[3]){
    new 
iEntity create_entity("ambient_generic");
    if(!
iEntity){
        return 
0;
    }
    
set_pev(iEntitypev_messageSOUND_CAL);
    
set_pev(iEntitypev_spawnflagsRADIO_SOUND);
    
//set_pev( iEntity, pev_effects, EF_BRIGHTFIELD);
    
set_pev(iEntitypev_health10.0);
    
DispatchSpawn(iEntity); 
    
entity_set_string(iEntityEV_SZ_classname"env_cal");
    
entity_set_int(iEntityEV_INT_solidSOLID_NOT);
    
entity_set_int(iEntityEV_INT_movetypeMOVETYPE_NONE);
    
entity_set_size(iEntityFloat:{ -1.0, -1.0, -1.0 }, Float:{ 1.01.036.0 });
    
entity_set_origin(iEntityvOrigin);
    
entity_set_model(iEntityMODEL_CAL);
    
drop_to_floor(iEntity);
    
    return 
iEntity;

The sound is in the route and is .wav, also the model. The radio sound is defined to 2.
PHP Code:
new Float:vOrigin[3];
entity_get_vector(idEV_VEC_originvOrigin);
CreateCal(vOrigin); 

Last edited by The overrated maniac; 10-31-2021 at 03:17. Reason: Solved
The overrated maniac is offline
 


Thread Tools
Display Modes

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 11:34.


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