nanos world API Reference Unofficial documentation
Constructor Shared

Trigger.Default Constructor

Syntax

Lua
Trigger(location, rotation, extent, trigger_type = TriggerType.Sphere, is_visible = false, color = Color.RED, overlap_only_classes = {})

Parameters

Name Type Default Description
location Vector
rotation Rotator
extent Vector|float Size of the Trigger. If using <code>TriggerType.Sphere</code> it is treated as radius, otherwise as Vector extent
trigger_type optional TriggerType TriggerType.Sphere
is_visible optional boolean false Useful for debugging
color optional Color Color.RED Color to paint the Trigger bounds - if Visible
overlap_only_classes optional string[] {} Filter Trigger to only overlap specific Classes. Leave it empty for all Classes