AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Insane creating entity time (https://forums.alliedmods.net/showthread.php?t=85618)

Speed! 02-13-2009 16:53

Insane creating entity time
 
PHP Code:

public make_shield(const Float:vOrigin[3])
{
    new 
i_Ent engfunc(EngFunc_CreateNamedEntity,g_EntMine);

    
engfunc(EngFunc_SetModel,i_Ent,model_aura_shield);

    
set_pev(i_Ent,pev_solid,SOLID_NOT);
    
set_pev(i_Ent,pev_movetype,MOVETYPE_FLY);

    
set_pev(i_Ent,pev_frame,0);
    
set_pev(i_Ent,pev_body,3);
    
set_pev(i_Entpev_originvOrigin );
    
fm_set_rendering(i_Ent,kRenderFxGlowShell,255,255,255,kRenderTransAlpha,70)
    
set_task(6.0"remove_shield"i_Ent)


it takes near 1.5 secs until i can see the model, what is actually insane for what im using it


All times are GMT -4. The time now is 16:54.

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