Fade
This command is a brilliant effect for changing a players alpha (invisibility). Fade makes a person's alpha change from his current alpha, to the alpha, over a set time. Over this time, the person will slowly fade, rather than just 'changing'. The longer the time, the smoother the fade is...
The correct syntax is:
wcs.Command(<userid>).Fade(<fade-to alpha>, <time to fade>)
- Userid - Which player do you want to fade
- Fade-to alpha - The ending alpha after the time period
- Time to fade - How long it will take to get from the users current alpha, to the 'fade-to alpha'.
Example:
def player_spawn(ev):
wcs.Command(ev['userid']).Fade(100,10)
# fade to 100 alpha over 10 seconds on spawn
Comments (0)
You don't have permission to comment on this page.