Es effect sparks

From EventScripts Community Encyclopedia


Overview

Syntax: es_effect sparks <origin-vector> <magnitude> <trail length> <end-vector>

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

  • <origin-vector> - the vector point of origin for the sparks.
  • <magnitude> - magnitude of the sparks.
  • <trail length> - length of trail for spark effects.
  • <end-vector> - the vector point of destination for the sparks.


Examples

event player_hurt
{
  es_setinfo x1 0
  es_setinfo y1 0
  es_setinfo z1 0
  es_setinfo v2 0
  es_createvectorstring v2 0 0 0
  es_setinfo v1 0
  es_getplayerlocation x1 y1 z1 event_var(userid)
  es_createvectorstring v1  server_var(x1) server_var(y1) server_var(z1)
  
  es_effect sparks server_var(v1) 1 1 server_var(v2)
}


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 sparks


{{{category}}}

blog comments powered by Disqus