Difference between revisions of "LUA:IsGroundSpawn"

(Created page with "= LUA Functions: IsGroundSpawn() = Checks to see if the given spawn is a ground spawn ==== Syntax ==== IsGroundSpawn(param1) ==== Parameters ==== ; Required - ''param1'' (Spa...")
 
 
Line 4: Line 4:
  
 
==== Syntax ====
 
==== Syntax ====
IsGroundSpawn(param1)
+
var = IsGroundSpawn(param1)
  
  
Line 24: Line 24:
  
 
This spell will check to see if a spawn is a ground spawn before checking to see if the caster can harvest it.
 
This spell will check to see if a spawn is a ground spawn before checking to see if the caster can harvest it.
 +
 +
== Notes ==
 +
Returns a bool

Latest revision as of 15:19, 12 September 2013

LUA Functions: IsGroundSpawn()

Checks to see if the given spawn is a ground spawn


Syntax

var = IsGroundSpawn(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn to check


Usage

function precast(Caster, Target)
	if IsGroundSpawn(Target) then
		return CanHarvest(Caster, Target)
	end
	
	return false
end

This spell will check to see if a spawn is a ground spawn before checking to see if the caster can harvest it.

Notes

Returns a bool