Raised This Month: $51 Target: $400
 12% 

[Ayuda] Crear un env_sprite en un attachment


  
 
 
Thread Tools Display Modes
Author Message
Matias_Esf
Junior Member
Join Date: May 2012
Location: Argentina
Old 01-24-2013 , 00:55   [Ayuda] Crear un env_sprite en un attachment
#1

Hola.!

perdon que los moleste de nuevo pero necesito ayuda con un codigo para poder seguir con mi mod

Quiero crear un env_sprite, pero que el lugar de creación (origien creo que es), sea en la mano del model, en algun attachment del model (todos los attachment que tiene el model son un hueso de la palma de la mano -_-)


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, <<ACA IRIA EL origen del attachment??>>) 
Ya busque el codigo con el buscador pero no logre encontrar nada que me ayude.

Saludos
Matias_Esf is offline
fearAR
Veteran Member
Join Date: Oct 2010
Old 01-24-2013 , 18:55   Re: [Ayuda] Crear un env_sprite en un attachment
#2

PHP Code:
new Float:Origin[3], Float:Angles[3];
engfuncEngFunc_GetAttachmentIdAttachmentOriginAngles ); 
Saludos.
__________________
~~~~ NPC AI ~~~~

[ Pathfinding - OK ]
[ Citizen AI - OK ]
[ Handle Weapons - --- ]
fearAR is offline
Send a message via MSN to fearAR
Matias_Esf
Junior Member
Join Date: May 2012
Location: Argentina
Old 01-25-2013 , 15:17   Re: [Ayuda] Crear un env_sprite en un attachment
#3

Quote:
Originally Posted by fearAR View Post
PHP Code:
new Float:Origin[3], Float:Angles[3];
engfuncEngFunc_GetAttachmentIdAttachmentOriginAngles ); 
Saludos.
No entendi mucho :S

Pero lo puse asi en el public

PHP Code:
public Poderl(id)

{
new 
origin[3]
get_user_origin(idorigin3)
new 
Float:Origin[3], Float:Angles[3]

new 
sprite engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_sprite")); 
if(!
sprite) return PLUGIN_CONTINUE
set_pev(spritepev_classname"spritetest"); 
engfunc(EngFunc_SetModelspritespr_rojo); 
engfunc(EngFunc_SetSizespriteFloat:{0.0,0.0,0.0}, Float:{0.0,0.0,0.0}); 
engfunc(EngFunc_GetAttachmentsprite0OriginAngles)


y cuando lo ejecuto al public , me tira este error:



que hice mal?
Matias_Esf is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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