getTileTriggers()
Posted: 22 Sep 2011, 11:31
I need to get Trigger objects (and their params) associated with certain Tile.
There's this static method "getTileTriggers" mentioned in docs (http://www.openspace-engine.com/static/ ... index.html), however I haven't found it using the API. Is it implemented?
This is what i'm trying to achieve:
There's an avatarStop trigger added to all the tiles near the doors.
When avatar already stands near the door, and clicks on the skin, representing the door, avatarMove event won't work because I'm already standing on the destination tile.. (i.e I've just entered interior and wanna go outside at once) So, avatarStop trigger on the tile won't be triggered too.
I need to get params, attached to the tile's tiggers, so that client would know what room to load or action to perform after I click the door (skin) while already standing on the tile, which would only trigger avatarStop event.
How do I accomplish that using OpenSpace2 API, when I have the reference to the proper Tile object?
There's this static method "getTileTriggers" mentioned in docs (http://www.openspace-engine.com/static/ ... index.html), however I haven't found it using the API. Is it implemented?
This is what i'm trying to achieve:
There's an avatarStop trigger added to all the tiles near the doors.
When avatar already stands near the door, and clicks on the skin, representing the door, avatarMove event won't work because I'm already standing on the destination tile.. (i.e I've just entered interior and wanna go outside at once) So, avatarStop trigger on the tile won't be triggered too.
I need to get params, attached to the tile's tiggers, so that client would know what room to load or action to perform after I click the door (skin) while already standing on the tile, which would only trigger avatarStop event.
How do I accomplish that using OpenSpace2 API, when I have the reference to the proper Tile object?