Es effect dust

From EventScripts Community Encyclopedia


Overview

Syntax: es_effect dust <start-vector> <direction-vector> <size> <speed>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: {{{x}}}

Description

Draws dust particles moving from origin in the direction specified..

Parameters

  • <start-vector> - the vector point of origin for the effect.
  • <direction-vector> - the vector for direction of the dust particles.
  • <size> - determines the size of the dust effect.
  • <speed> - determines the speed of the dust particles.


Examples

event player_hurt
{
  es_xset x1 0
  es_xset y1 0
  es_xset z1 0
  es_xset v2 0
  es_xcreatevectorstring v2 0 0 0
  es_xset v1 0
  es_getplayerlocation x1 y1 z1 event_var(userid)
  es_createvectorstring v1  server_var(x1) server_var(y1) server_var(z1)
  
  es_delayed 2 es_xeffect dust server_var(v1) server_var(v2) 9999 0.1
}


Notes

  • ES can only reliably provide a subset of effects and these are shown to all players.
  • All points/vectors use the vector-string syntax of es_createvectorstring.
  • This command is still experimental and may have its syntax changed eventually.
  • This command was introduced in EventScripts version 1.5.


See also


External links

es_xeffect dust


{{{category}}}

blog comments powered by Disqus