Thread

Bot Teleport (Sdk)

Bot Teleport // Sdk

1  |  

realmx24 xiv

Feb 29, 2000, 8:20pm
I recently came across a problem when trying to have a bot read an avatar
click and then go that avatar's position in the world.

void handle_avatar_click (void)
{

sprintf (message1, "%s threw a balloon at %s!
", aw_string (AW_AVATAR_NAME), aw_string (AW_CLICKED_NAME));
aw_say (message1);
sprintf (message2, "Splat!");
aw_say (message2);
sprintf (clickedname, "%s", aw_string(AW_CLICKED_NAME));

}

-is what I have now. I was not able to find in the SDK reference pages how to find an avatar that has been clicked location in the world, so that the bot could update its position using aw_state. Now you're probably wondering why I didn't put this on the newsgroup. My ISP deactivated me for some unknown reason and I cannot post a message there.

strike rapier

Feb 22, 2002, 4:21pm
*Replies to another rearlly old post*

I think its something like....

Avatar_Clicked....

Determin Avatar Clicked X Y Z axis,
Define the X Y Z values as strings / integers.
I can only think of you making an equivilent to brants VB classes for this.

then

AW_My_X = X
AW_My_Z = Z
AW_My_Y = Y

AW_State_Change( )

----------------------------------------------------------------------------
---
This was a post from Strike that would maybe have done more good about 2
years ago, before I was even in AW or had the slightest hint about
programming for that matter. But I felt like replying just for the fun of it
:)
----------------------------------------------------------------------------
---

NB: If I did get anothing right in there its not bad, cause im a newbie to
programming, but been helped by the best. :)

----------------------------------------------------------------------------
---
*Goes to bed*

strike rapier

Feb 22, 2002, 7:25pm
lol, opps,
[View Quote]

strike rapier

Feb 22, 2002, 8:04pm
Ive managed to get my sent date display back :)

*deletes all posts longer than 5 months old*
[View Quote]

strike rapier

Feb 22, 2002, 8:05pm
Sorry for all the non-SDK posts :)

[View Quote]

dion

Feb 22, 2002, 8:05pm
0_o FREAK!
[View Quote]

strike rapier

Feb 22, 2002, 8:09pm
:(

Nah, just getting started with using the newsgroups, only used the aw
newsgroup for the last week.

[View Quote]

dion

Feb 22, 2002, 8:16pm
:-P I guess you like posting too, haha :-P You replied to yourself 3 times!
[View Quote]

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