S2ENGINE HD  1.4.6
Official manual about S2Engine HD editor and programming
Trigger

Base Class: SceneObject

Trigger.jpg

Overview

A trigger is a special object that sends a message to itself if an object is inside it, or if no objects are inside it. To check if object are inside it, a trigger make a scan every given milliseconds. Generally triggers are associated with a Volume that is used to define its extention in the space. If no volumes are associated the trigger extensions are the extensions of the box builded using the dims param.

Parameters
Caller_class(string) Class of objects that make trigger receiving 'inside' message when inside it.
volume(object name) List of volumes used to scan if objects are inside. It is formatted as a set of volumes names separated by ',' simbol.
scanDT(float) time interval that trigger waits before doing another scan. It is expressed in milliseconds. (default value is 2000.0).

Receiving Messages

none

Sending Messages

Name Description Content parameters Receivers
Inside Send,at every scan, when an object is inside trigger message#0: Name of the object inside it. self
Outside Send, at every scan, when no objects are inside trigger. nn self

See also
Messages