Quote:
Originally Posted by Arkshine
|
Thanks, I will try that.
EDIT : Does not work, I can still run through it. Maybe it is a issue with the model?
PHP Code:
while((iEnt = find_ent_by_class(iEnt, ENTITY_TERROR_CORE)))
{
g_iTCoreEnt = iEnt
entity_set_model(g_iTCoreEnt, CORE_MODEL)
entity_set_origin(g_iTCoreEnt, g_flTCoreOrigin);
entity_set_float(g_iTCoreEnt, EV_FL_takedamage, 1.0);
entity_set_float(g_iTCoreEnt, EV_FL_health, 2000.0);
GetModelCollisionBox(g_iTCoreEnt, mins, maxs) // GetModelBoundingBox did not work too.
entity_set_size(g_iTCoreEnt, mins, maxs);
entity_set_int(g_iTCoreEnt, EV_INT_solid, SOLID_BBOX);
drop_to_floor(g_iTCoreEnt)
ClCMD_sm(id)
}
PHP Code:
if(GetModelBoundingBox(g_iTCoreEnt, mins, maxs, Model_DefaultSize))
client_print(id, print_console, "%i %i %i - %i %i %i", mins[0], mins[1], mins[2], maxs[0], maxs[1], maxs[2])
Returns : 0 0 0 - 0 0 0
__________________