Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description: Returns trigger area information.

Syntax

Syntax: triggerArea trigger
Parameters:
Return Value: Array - [x-radius, y-radius, angle, rectangle]
  • x-radius: Number - Half the width of the trigger area.
  • y-radius: Number - Half the height of the trigger area.
  • angle: Number - Rotation angle of trigger (in degrees).
  • rectangle:: Boolean - If true then trigger area is a square/rectangle, if false it is a circle/ellipse.

Examples

Examples:
_area = triggerArea trg1

Additional Information

See also: setTriggerArea, triggerAreaPolygonal
Multiplayer:If the trigger area was setTriggerArea without publicExec'ing the command, then triggerArea will always return the same values for non-local triggers: [50,50,0.7,false] for V1.x & 2.x and [50,50,1.#QNAN,false] since 3.x
If publicExec was used, then the correct area values will be returned, even for non-local triggers.
Problems: 

Notes