Page 1 of 1

Tile Instance Triggers

Posted: 23 Nov 2008, 02:13
by e2easy
I've set up some Tile Instance Triggers within the Editor. How do I pick these up in ActionScript?

for example, if I set an avatarGo event, with no target, and a parameter, is there an AvatarEvent.avatarGo, or AvatarEvent.AVATAR_GO event? It's not documented? Is my ActionScript something like..

os.addEventListener(AvartarEvent.avatarGo,avatargofn);

Is there a "parameter" property, to pick up the parameter? What's the syntax here?

Is there an example somewhere? Or is this all something that's going to be in the next version?

Posted: 24 Nov 2008, 08:12
by Bax
As written in the Editor's documentation, the "triggers" feature is not used inside the current version of the OpenSpace Engine. Now all the tiles fire all AvatarEvents, as shown in the provided examples.
The next major release of OpenSpace will make use of this feature to optimize the dispatching of events.