WarCraft: Source

 

MiscCustom

Page history last edited by freddukes@... 1 yr ago

MiscCustom

 


This takes the same parameters as est_effect 11... The effect is a player glow, which means that the effect will start at the player, and work around him.

 

The correct syntax is:

 

wcs.Effect().MiscCustom(<Identifier>, <delay>, <model>, <x>, <y>, <z>, <life>, <size>, <brightness>)

 

  • Identifier - Uses EST Player Selection identifiers to identify who will see the effect
  • Delay - How long before the effect is seen
  • Model - The model of the effect
  • X, Y, Z - The starting point of the effect
  • Life - How long the effect will stay there
  • Size - How large will the effect be. 1 = player size, 2 = twice player size etc
  • Brightness - How bright will the effect be (0-255)

 


Example:

 

def player_hurt(ev):

    x,y,z = es.getplayerlocation(ev['userid'])

    wcs.Effect().MiscCustom('#a', 0, 'sprites/purpleglow1.vmt', x, y, z, 3.5, 1.5, 150)

 

 

Comments (0)

You don't have permission to comment on this page.