Color
This command enables you to change the users color to a specefied color. All the parameters are optional, and using none will set a players color back to the original color.
the correct syntax is:
wcs.Command(<userid>).Color([optional: color name (see below)], [optional: red, green, blue], [optional: Alpha])
- Userid - The player who you're changing the color of
- Color Name - Default color names, which will automatically choose the colors for you, the following are colors which you can use:
- 'red'
- 'blue'
- 'green'
- 'magenta'
- 'brown'
- 'grey'
- 'cyan'
- 'yellow'
- 'orange'
- 'white'
- 'pink'
- Red/ Green/ Blue - The specific RGB colors that you'd like to use. (0 - 255)
- Alpha - How invisble the player will be (0 - 255)
Examples:
def player_spawn(ev):
player = wcs.Command(['userid'])
Using a color name with no alpha:
player.Color('cyan')
Using a Color name With alpha:
player.Color('cyan',alpha=100)
Using a Custom Color Scale with no alpha:
player.Color(red=100,green=100,blue=100)
Using a Custom Color Scale With Alpha:
player.Color(red=100, green=100, blue=100, alpha=100)
Note: If you only want to set a players alpha, you may consider the Fade command
Comments (0)
You don't have permission to comment on this page.