Raised This Month: $ Target: $400
 0% 

beam/sprite not showing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 07-18-2018 , 16:02   beam/sprite not showing
Reply With Quote #1

hi guys. im trying to create beam with an simple sprite. code is executed ingame but nothing is created...here is the code of it:

PHP Code:
new origin[3];
    
get_user_origin(idorigin3);
         
    
message_beginMSG_ALLSVC_TEMPENTITY, { 0.00.00.0 }, id );
    
write_byteTE_BEAMPOINTS );
    
write_coordorigin[0] ); //start-x
    
write_coordorigin[1] );// y
    
write_coordorigin[2] );// z
    
write_coordorigin[0]+100 );// end - x
    
write_coordorigin[1] ); //y 
    
write_coordorigin[2] ); //z
    
write_shortsprite )    // sprite index
    
write_byte(0)        // starting frame
    
write_byte(1)        // frame rate
    
write_byte(5)        // life
    
write_byte(10)        // line width
    
write_byte(0)        // noise
    
write_byte(255);        // red
    
write_byte(200);        // green
    
write_byte(0);        // blue
    
write_byte(200)
    
write_byte(0);    
    
message_end() 
is the problem with coordinates ? thanks in advance

Last edited by JocAnis; 07-18-2018 at 16:03.
JocAnis 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 12:31.


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