Lighting
Create a lightning strike with the option for it do do damage
The correct syntax is:
wcs.Effect().Lightning(x_origin, y_origin, z_origin, lightning_range, lightning_time, damage, team)
-
x_origin - The starting x point of which there will be an area of lightning
-
y_origin - The starting y point of which there will be an area of lightning
-
z_origin - The starting z point of which there will be an area of lightning
-
lightning_range - how far the area that lightning strikes is
-
lightning_time how long it goes on for
-
damage - 0 = no damage any other value = damage
-
team = the team to do damage to

Example:
def player_spawn(ev):
if random.randint(1, 5) == 1:
es.tell(ev['userid'] '#green', 'uh-oh')
loc = es.getplayerlocation(ev['userid'])
wcs.Effect().Lightning(loc[0], loc[1], loc[2], 300, 4, 1, '#alive,#bot')
Comments (0)
You don't have permission to comment on this page.