Hello everybody,
I want to place a model at the map and want it to take damage and execute a function when it's health under a fixed amount.
My problem is, players can go through the model and the model / entity does not take damage.
So my question is, how do I get the proper size of the model to make a accurate box?
My current code :
PHP Code:
new Float: mins[3] = {-12.0, -12.0, 0.0 } // Not accurate
new Float: maxs[3] = { 12.0, 12.0, 75.0 } // Not accurate
entity_set_model(iEnt, CORE_MODEL)
entity_set_origin(iEnt, g_flTCoreOrigin);
entity_set_float(iEnt, EV_FL_takedamage, 1.0);
entity_set_float(iEnt, EV_FL_health, 2000.0);
entity_set_size(iEnt, mins, maxs); // Not accurate
entity_set_int(iEnt, EV_INT_solid, SOLID_BBOX); // does not do anything?
__________________