Thread

Need Help.. (Sdk)

Need Help.. // Sdk

1  |  

lanezeri

Feb 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

lanezeri

Feb 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..

andras

Feb 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]

lanezeri

Feb 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..

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn