How i can check that the avatar near some building now?

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
Darkwing Duck
Posts: 20
Joined: 21 Dec 2010, 13:17

How i can check that the avatar near some building now?

Post by Darkwing Duck »

Hi.
How i can check that my Avatar near the some building on the map when it has stopped?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Use the tile triggers. In the Editor, add a stop trigger to the tile/s near the building. Then in your client listen to the respective event.
Check the example provided with OpenSpace: the doors of the houses are always closed, except if your avatar is in front of them.
Paolo Bax
The SmartFoxServer Team
Darkwing Duck
Posts: 20
Joined: 21 Dec 2010, 13:17

Post by Darkwing Duck »

The buildings must dinamically add to the map.. and I don't know where in editor will be the building..
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Make that sensor tile/s part of the supertile which represents the building.
Paolo Bax
The SmartFoxServer Team
Post Reply