Hi, i maked this, but doesn't throw with velocity... idk why..
ENT was created...here is the code
PHP Code:
new Float:throwVelocity[3];
velocity_by_aim(id, 400, throwVelocity);
new Float:origin[3];
pev(id, pev_origin, origin);
set_pev(ent, pev_origin, origin);
set_pev(ent, pev_classname, "something");
engfunc(EngFunc_SetModel, ent, model);
engfunc(EngFunc_SetSize, ent, mins, maxs);
set_pev(ent, pev_solid, SOLID_BBOX);
set_pev(ent, pev_movetype, MOVETYPE_TOSS);
set_pev(ent, pev_velocity, throwVelocity);
engfunc(EngFunc_DropToFloor, ent);
i want to throw a model like a weapon, bomb, etc..
__________________