Est BlackHole

From EventScripts Community Encyclopedia
Syntax: est_BlackHole <x> <y> <z> <time>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

Destroys anything that gets to close, pulls anything in a line of sight to it.

Parameters

  • x - x coordinate to set black hole
  • y - y coordinate to set black hole
  • z - z coordinate to set black hole
  • time - Life time of the black hole (seconds)

Example


This will create a black hole where the player is looking when they type !blackhole into their console

event es_client_command
{
	if (event_var(command) equalto !blackhole) do
	{
		es_xset blackhole_time 1
		es_xset blackhole_x 0
		es_xset blackhole_y 0
		es_xset blackhole_z 0
 
		if (event_var(commandstring) notequalto 0) do
		{
			es_set blackhole_time event_var(commandstring)
		}
 
		es est_GetviewCoord event_var(userid) blackhole_x blackhole_y blackhole_z
		es est_blackhole server_var(blackhole_x) server_var(blackhole_y) server_var(blackhole_z) server_var(blackhole_time)
	}
}

See Also

blog comments powered by Disqus