AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   throw a model, object. etc... (https://forums.alliedmods.net/showthread.php?t=85369)

tuty 02-09-2009 10:25

throw a model, object. etc...
 
Hi, i maked this, but doesn't throw with velocity... idk why..

ENT was created...here is the code

:arrow:


PHP Code:

new Float:throwVelocity[3];
velocity_by_aim(id400throwVelocity);

new 
Float:origin[3];
pev(idpev_originorigin);
set_pev(entpev_originorigin);
set_pev(entpev_classname"something");
engfunc(EngFunc_SetModelentmodel);
engfunc(EngFunc_SetSizeentminsmaxs);
set_pev(entpev_solidSOLID_BBOX);
set_pev(entpev_movetypeMOVETYPE_TOSS);
set_pev(entpev_velocitythrowVelocity);
engfunc(EngFunc_DropToFloorent); 


i want to throw a model like a weapon, bomb, etc..

AntiBots 02-09-2009 10:30

Re: throw a model, object. etc...
 
PHP Code:

new Float:velo[3]
pev(idpev_velocityvelo)
velo[2] += 100
 
set_pev
(entpev_velocityvelo


tuty 02-09-2009 10:57

Re: throw a model, object. etc...
 
hmm... ty.. but idk if he works.. no i test..:mrgreen:


All times are GMT -4. The time now is 17:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.