ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Need Help.. (Sdk)
Need Help.. // SdklanezeriFeb 9, 2001, 8:03pm
I am making a bot and I need to know how to make the bot realize when a
certain object is clicked.. Example below lanezeriFeb 9, 2001, 8:07pm
Sorry bout that...
Say I click a "button1.rwx" how do I make my bot realize that? That what I need to know.. andrasFeb 9, 2001, 8:12pm
First you have to query the world so the bot will get the message (it is enough to query the close vicinity of the bot). Then you should keep track of the objects (or those you are interested) in a kind of database.
Install your callback to the AW_EVENT_OBJECT_CLICK . The clicked object is uniquely identified by AW_CELL_X, AW_CELL_Z, and AW_OBJECT_NUMBER at the callback. Do a lookup in your database for the particular object and act as you planned if you got a match. HTH Andras [View Quote] lanezeriFeb 10, 2001, 2:51am
Oh goodness.. I never knew it would be that hard.. Brant said the exact same
thing.. I just hoped you would have a easier way lol.. I cant get my bot to survey so I think I am screwed.. |