ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Bots confused... (Sdk)
Bots confused... // SdkjoshDec 29, 1998, 10:42pm
Ok when a AW__EVENT_CHAT is called with AW_AVATAR_X , Y, Z and YAW it
selects a random avatar and not the avatar that said the message, is this a possible problem or is it supposed to do that? decastro@cable.a2000.nl (xelag)Dec 30, 1998, 12:52am
Josh, you can't ask the position of someone that talks, you are
probably getting the data of the last aw_event_avatar_add or aw_event_avatar_change produced by anyone arriving or moving. The only way you can keep track of positions (and avatar number and last performed gesture) is by storing these values until the person leaves the area, when the bot gets the delete event. If someone talks, you must then search for his/her position in your mini-database. XelaG. [View Quote] >Ok when a AW__EVENT_CHAT is called with AW_AVATAR_X , Y, Z and YAW it >selects a random avatar and not the avatar that said the message, is >this a possible problem or is it supposed to do that? joshDec 30, 1998, 6:16am
Ok, I just wanted to mention this as it may of been a possible problem...
[View Quote] > Josh, you can't ask the position of someone that talks, you are > probably getting the data of the last aw_event_avatar_add or > aw_event_avatar_change produced by anyone arriving or moving. The only > way you can keep track of positions (and avatar number and last > performed gesture) is by storing these values until the person leaves > the area, when the bot gets the delete event. If someone talks, you > must then search for his/her position in your mini-database. > > XelaG. > [View Quote] |