No categories assigned

LUA:IsGroundSpawn

Revision as of 18:24, 9 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: IsGroundSpawn() = Checks to see if the given spawn is a ground spawn ==== Syntax ==== IsGroundSpawn(param1) ==== Parameters ==== ; Required - ''param1'' (Spa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: IsGroundSpawn()

Checks to see if the given spawn is a ground spawn


Syntax

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.