Quote:
Originally Posted by CrazY.
Try with entity_set_size instead.
|
No bro :/ . I already testing with entity_set_size :/. Anyway, i tried again.
This result:
Use this code in case ACTIVITY_DUCK:
PHP Code:
new Float:vecMins[3];
new Float:vecMax[3];
//new Float:VecSize[3]
vecMins = Float:{-16.0, -16.0, -32.0};
vecMax = Float:{16.0, 16.0, 18.0};
//VecSize = Float:{32.0, 32.0, 50.0};
entity_set_size(iEnt, vecMins, vecMax);
entity_set_vector(iEnt, EV_VEC_mins, vecMins);
entity_set_vector(iEnt, EV_VEC_maxs, vecMax);
And case ACTIVITY_STAND:
PHP Code:
new Float:vecMins[3];
new Float:vecMax[3];
// new Float:VecSize[3]
vecMins = Float:{-16.0, -16.0, -36.0};
vecMax = Float:{16.0, 16.0, 36.0};
//VecSize = Float:{32.0, 32.0, 72.0};
entity_set_size(iEnt, vecMins, vecMax);
entity_set_vector(iEnt, EV_VEC_mins, vecMins);
entity_set_vector(iEnt, EV_VEC_maxs, vecMax);
This result:
Ducking:
Standing up: