How can I find out the groupId when an item is Removed from (OpenSpaceEvent.MAP_ITEM_REMOVED) or Added to (OpenSpaceEvent.MAP_ITEM_ADDED) a map in edit mode.
Thanks
groupId for MAP_ITEM_REMOVED / MAP_ITEM_ADDED
For the MAP_ITEM_ADDED event, you can just get one of the Tile objects provided in the event parameters, and read its groupId property.
For the MAP_ITEM_REMOVED you don't have the same, so you should save a reference to it when the MAP_ITEM_SELECTED event is dispatched.
For the MAP_ITEM_REMOVED you don't have the same, so you should save a reference to it when the MAP_ITEM_SELECTED event is dispatched.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 42 guests