AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   More glow help :/ (https://forums.alliedmods.net/showthread.php?t=50062)

tadoom 01-18-2007 18:47

More glow help :/
 
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

XxAvalanchexX 01-18-2007 20:02

Re: More glow help :/
 
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)   }


All times are GMT -4. The time now is 22:23.

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