You are viewing an old version of this page. Return to the latest version.
Version of 18:24, 9 September 2013 by I need to Update My Profile
No categories assigned
LUA:IsGroundSpawn
- Last edited 12 years ago by I need to Update My Profile
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.