Es effect energysplash
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: 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: es_xeffect energysplash [edit] DescriptionDraws a quick energy effect at the origin flying in the direction specified. [edit] Parameters
[edit] ExamplesWhen somebody kills someone, make a energysplash between them event player_death { // Set vars es_set temp_x 0 es_set temp_y 0 es_set temp_z 0 es_set att_loc 0 es_set vic_loc 0 es_set splash_vec 0 // Get position of the victim es_getplayerlocation temp_x temp_y temp_z event_var(userid) es_createvectorstring vic_loc server_var(temp_x) server_var(temp_y) server_var(temp_z) // Get attacker position es_getplayerlocation temp_x temp_y temp_z event_var(attacker) es_createvectorstring att_loc server_var(temp_x) server_var(temp_y) server_var(temp_z) // Create a vector between them es_createvectorfrompoints splash_vec server_var(att_loc) server_var(vic_loc) // Splash: <start-vector> <direction-vector> <explosive-bool> es_effect energysplash server_var(att_loc) server_var(splash_vec) 0 }
[edit] Notes
[edit] See also
|
