View Single Post
Author Message
abdelwahab
Member
Join Date: Aug 2019
Old 04-14-2024 , 09:12   Entity disappearing under the ground
Reply With Quote #1

Hello!,
So here is the thing i created entity when i say ent
PHP Code:
        static Float:flOrigin[3]; get_entvar(plrvar_originflOrigin);
        
engfunc(EngFunc_SetModelg_pPlayerEnt[plr], g_szModel);
        
set_entvar(g_pPlayerEnt[plr], var_originflOrigin);
        
set_entvar(g_pPlayerEnt[plr], var_mins, {-19.3, -8.970.0});
        
set_entvar(g_pPlayerEnt[plr], var_maxs, {19.38.9712.76});
        
set_entvar(g_pPlayerEnt[plr], var_solidSOLID_NOT);
        
set_entvar(g_pPlayerEnt[plr], var_movetypeMOVETYPE_TOSS);
        
set_entvar(g_pPlayerEnt[plr], var_gravity1.0); 
the thing is when im near the wall and create the ent, the ent goes under the ground and disappear totally, it disappear slowing the gravity don't effect it.
Thanks!
abdelwahab is online now