Difference between revisions of "Effect.explosion"

From Runsafe
Jump to: navigation, search
(Created page with "== Details == ''Arguments'' * '''worldName''' (String) - The name of the world which this explosion occurs. [Required] * '''x''' (Double) - The X co-ordinate of this explosion...")
(No difference)

Revision as of 04:14, 4 June 2013

Details

Arguments

  • worldName (String) - The name of the world which this explosion occurs. [Required]
  • x (Double) - The X co-ordinate of this explosion. [Required]
  • y (Double) - The Y co-ordinate of this explosion. [Required]
  • z (Double) - The Z co-ordinate of this explosion. [Required]
  • power (Float) - The power of the explosion. [Required]
  • breakBlocks (Boolean) - Should the explosion break blocks? [Required]
  • fire (Boolean) - Should the explosion set fire to things? [Required]

Returns

  • Nothing.

Usage

-- Create an explosion at 42, 42, 42 with a 10 TNT power that sets fire and breaks blocks.
engine.effect.explosion('world', 42, 42, 42, 10, true, true);

Notes

  • The power value should be kept low to avoid server lag.
  • The fire flag may cause lag with larger explosions.