Raised This Month: $ Target: $400
 0% 

More glow help :/


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tadoom
Junior Member
Join Date: Jan 2007
Old 01-18-2007 , 18:47   More glow help :/
Reply With Quote #1

Sorry to keep bugging you guys :/
This is my code so far and im really stumped becuase.. well im a noobie.
Code:
public GlowMenuChoice(id, key) {  new Client[21]  get_user_name(id,Client,20)      switch(id)  {   case 0:   {    set_hudmessage(255,0,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)    show_hudmessage(0, "%s's Sentry Gun is now glowing Red!",Client)    set_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)   }

I dont know how to set what I want to render

Avalanche coded this small part for me which is also in the code:

Code:
public clientsg(id) {  new sentry = find_ent_by_owner(0,"tfc_wpn_sentrygun",id); }

I just dont know what to do to set set_rendering on the clients sg
tadoom is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-18-2007 , 20:02   Re: More glow help :/
Reply With Quote #2

The first argument of the set_rendering function is which entity to target. So, combining the code:

Code:
public GlowMenuChoice(id, key) {  new Client[21]  get_user_name(id,Client,20)      switch(id)  {   case 0:   {    set_hudmessage(255,0,0, 0.02, 0.73, 0, 6.0, 8.0, 0.1, 0.2, 4)    show_hudmessage(0, "%s's Sentry Gun is now glowing Red!",Client)    new sentry = find_ent_by_owner(0,"tfc_wpn_sentrygun",id);    if(sentry) set_rendering(sentry,kRenderFxGlowShell,255,0,0,kRenderNormal,25)   }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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 22:23.


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