Hi, i made this code
PHP Code:
new Float:iVelocity[ 3 ], Float:iOrigin[ 3 ];
velocity_by_aim( id, random_num( 80, 400 ), iVelocity );
pev( id, pev_origin, iOrigin );
set_pev( ent, pev_origin, iOrigin );
set_pev( ent, pev_classname, gClassname );
engfunc( EngFunc_SetModel, ent,MODEL );
engfunc( EngFunc_SetSize, ent, MINSZ, MAXSZ );
set_pev( ent, pev_solid, SOLID_BBOX );
set_pev( ent, pev_movetype, MOVETYPE_TOSS );
set_pev( ent, pev_velocity, iVelocity );
dllfunc( DLLFunc_Spawn, ent );
// engfunc( EngFunc_DropToFloor, ent );
fm_set_rendering( ent, kRenderFxGlowShell, 0, 255, 0, kRenderNormal, 70 );
cs_remove_user_nvg( id ); // a stock... ^^
the problem is, when i use dllfunc( DLLFunc_Spawn, ent ); the object will dropped with nice velocity but i cant touch him... and if i use engfunc( EngFunc_DropToFloor, ent ); the velocity doesn't work and i can touch the model. I need a little help
__________________