AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Changing transparency (https://forums.alliedmods.net/showthread.php?t=106016)

OneMoreLevel 10-10-2009 18:17

Changing transparency
 
Is there a way to change a persons transparency? I was thinking something like set_player_transparency, but that doesnt work.

Arkshine 10-10-2009 18:18

Re: Changing transparency
 
set_user_rendering() I guess.

OneMoreLevel 10-10-2009 18:28

Re: Changing transparency
 
Like :
PHP Code:

set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha, (90)) 

And 90 is the invis?

Arkshine 10-10-2009 18:29

Re: Changing transparency
 
Try ?

vitorrd 10-10-2009 18:32

Re: Changing transparency
 
If you'll excuse me on this one, Arkshine, it is a bit tough for beginners to know the degree of transparency (because it uses a byte-sized implementation which is kinda low level for beginners).

@ Thread: 0 is fully transparent, 255 is opaque.

OneMoreLevel 10-10-2009 18:34

Re: Changing transparency
 
Thanks, it compiles, now to see if it shows in my server :D

@ vittord, thanks for trying to help, but Im and image editor, so I knew.

+Karma to both of you :D

Arkshine 10-10-2009 18:35

Re: Changing transparency
 
It's the scripting section, it doesn't hurt to test in-game. Also it has been asked numerous times, so he should have search before. So, sorry but I don't feel like to paste the exact code with a full explanation in this case. He must have the habit to test otherwise he will never learn.

OneMoreLevel 10-10-2009 18:36

Re: Changing transparency
 
I did, but I didnt see anything, sorry, I'll search harder next time.

vitorrd 10-10-2009 20:05

Re: Changing transparency
 
Oh, sorry then. What was the result?

OneMoreLevel 10-11-2009 00:20

Re: Changing transparency
 
I haven't tested it on my server yet, but I made a PCVAR for it, and it compiles.


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

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