PHP Code:
public throw_something(id)
{
new Float: Origin[3]
pev(id, pev_origin , Origin)
Origin[2] += 28
new Float:fVelocity[3]
new iEnt = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
if(!iEnt)
return PLUGIN_HANDLED
velocity_by_aim(id, 1000, fVelocity)
set_pev(iEnt, pev_velocity, fVelocity)
set_pev(iEnt, pev_classname, "iClassname")
engfunc(EngFunc_SetSize, iEnt, Float:{-1.0, -7.0, -1.0}, Float:{1.0, 7.0, 1.0})
engfunc(EngFunc_SetModel,iEnt, "iMdl.mdl")
set_pev(iEnt, pev_origin, Origin)
set_pev(iEnt, pev_solid, SOLID_TRIGGER)
set_pev(iEnt, pev_movetype, MOVETYPE_TOSS)
set_pev(iEnt, pev_owner, id)
}
is it something like that you are looking for?
__________________