Raised This Month: $ Target: $400
 0% 

Glow entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 07-14-2017 , 14:35   Re: Glow entity
Reply With Quote #8

PHP Code:
new rgb_colors[3]
new 
string_with_colors[20]="255 205 100"
new temp[3][25]

parse(string_with_colorscharsmax(string_with_colors), temp[0], 24temp[1], 24temp[2], 24)/*should be charsmax everywhere, but i lack in time.*/

rbg_colors[0] = str_to_num(temp[0])
rbg_colors[1] = str_to_num(temp[1])
rbg_colors[2] = str_to_num(temp[2])


entity_set_int(ent,EV_INT_iuser1,rgb_colors[0]) 
entity_set_int(ent,EV_INT_iuser2,rgb_colors[1]) 
entity_set_int(ent,EV_INT_iuser3,rgb_colors[2]) 

set_rendering(ent,kRenderFxGlowShell,entity_get_int(ent,EV_INT_iuser1),entity_get_int(ent,EV_INT_iuser2),entity_get_int(ent,EV_INT_iuser3),kRenderNormal,60

but i didn`t quite understand why you used entity_set_int.
__________________
retired chump

Last edited by DjSoftero; 07-14-2017 at 14:37.
DjSoftero 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 23:11.


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