Skip to content

SetZoneHittable

Makes a zone a target - it catches the shots and swings that reach it.

A target hears every arrow, bolt or ball a player shoots into it (OnProjectileHitZone) and every swing whose reach gets there (OnMeleeHitZone). Any zone can be one: a box, a circle, a sphere. Players walking into it still count as being in the zone.

SetZoneHittable(id [, hittable])
Parameter Type
id number the zone
hittable boolean true (the default) = a target; false = an ordinary zone again (optional)

boolean - false when there is no such zone

local goal = CreateZone(1300, 1098, 26, 1300.5, 1102, 28)
SetZoneHittable(goal, true)

IsZoneHittable · OnProjectileHitZone · OnMeleeHitZone · the Zones group of the index