AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] Create a env_sprite an attachment (https://forums.alliedmods.net/showthread.php?t=206637)

Matias_Esf 01-24-2013 15:06

[Help] Create a env_sprite an attachment
 
Hi.!

I want to create a env_sprite, but the place of creation (origien think it is), is in the hand of the model, the model in any attachment (all attachment that has the model are a bone of the palm-_-)

PHP Code:

new sprite engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_sprite")); 
if(!
sprite) return PLUGIN_CONTINUE
set_pev(spritepev_classname"spritetest"); 
engfunc(EngFunc_SetModelsprite"sprites/w_gb_r_s.spr"); 
engfunc(EngFunc_SetSizespriteFloat:{0.0,0.0,0.0}, Float:{0.0,0.0,0.0}); 
//engfunc(EngFunc_SetOrigin, sprite, <<attachment??>>) 

Now find the code to the form but can not find anything to help me.
regards


All times are GMT -4. The time now is 20:34.

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