Syntax: Select all
model = Model('sprites/lghtning.vmt')
te = TempEntity('BeamRingPoint')
te.model = model
te.halo = model
te.center = player.position
te.start_radius = 40
te.end_radius = 60
te.frame_rate = 100
te.life_time = 1
te.start_width = 10
te.end_width = 60
te.fade_length = 6
te.amplitude = 10
te.red = 255
te.green = 100
te.blue = 100
te.alpha = 255
te.speed = 100
te.create()
print('Hello') # The code is definitely being executed
It simply doesn't show anything.
Replacing the temp entity with 'BeamPoints' and instead of center using start_point=player.origin and end_point=other_player.origin works perfectly.
Is there something wrong with BeamRingPoint in particular, or am I doing something wrong?