Est GetWallBetween

From EventScripts Community Encyclopedia
Syntax: est_GetWallBetween <variable> <start-x> <start-y> <start-z> <end-x> <end-y> <end-z>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

  • Returns whether there is a wall between 2 given coordinates

Parameters

  • variable - The variable to store the returned value in
  • start x, y, z - The location of the first point.
  • end x, y, z - The location of the second point.

Example


event player_hurt
{
  es_xset start_x 0
  es_xset start_y 0
  es_xset start_z 0
  es_xset end_x 0
  es_xset end_y 0
  es_xset end_z 0
  es_xset wall_between 0
  es_getplayerlocation start_x start_y start_z event_var(userid)
  es_getplayerlocation end_x end_y end_z event_var(attacker)
  es est_GetWallBetween wall_between server_var(start_x) server_var(start_y) server_var(start_z) server_var(end_x) server_var(end_y) server_var(end_z)
  es_msg Is there a wall between the attacker and victim: server_var(wall_between)
}

Notes

  • None

See Also

blog comments powered by Disqus