Syntax: Select all
import wcs
from events import Event
from players.helpers import index_from_userid
from players.entity import PlayerEntity
from colors import Color
from listeners.tick import tick_delays
@Event
def player_spawn(args):
userid = args.get_int("userid")
index = index_from_userid(userid)
player = PlayerEntity(index)
player.set_color(Color(255, 0, 0))
I got all the properties PlayerEntity and found:
render_mode and render_fx,
replaced in the. \packages\source-python\entities\entity.py rendermode on render_mode and render_fx, color change earned.
The question is: how do I change the transparency of the player?
And how do I give the players m4a1_silencer and usp silencer?
The list of weapons:
.\data\source-python\weapons\cs go.ini no such weapons