Thread

VB, AWSdk 1.0, Changing Objects Help Needed (Bots)

VB, AWSdk 1.0, Changing Objects Help Needed // Bots

1  |  

c.bello

Oct 1, 2003, 7:38pm
Hey all, I am working on a bot that will have multiple change_object
commands and I am looking for a little help with it because i am getting an
error 204 (can't locate object) and i am absoloutley sure the coords/object
number are correct. I also need to know how to after the bot changes the
object keep the object number the same. Thanks Alot C.Bello

heres the code i have

Private Sub invisible1_Click()
Dim rc As Long
sdk.aw_int_set (AW_OLD_OBJECT_NUMBER), 996509472
sdk.aw_int_set (AW_OBJECT_OLD_X), 1544237
sdk.aw_int_set (AW_OBJECT_OLD_Z), 194363
sdk.aw_int_set (AW_OBJECT_X), 1544237
sdk.aw_int_set (AW_OBJECT_Y), 695
sdk.aw_int_set (AW_OBJECT_Z), 194363
sdk.aw_int_set (AW_OBJECT_YAW), 270
sdk.aw_int_set (AW_OBJECT_OWNER), 351617
sdk.aw_string_set (AW_OBJECT_MODEL), ("spt2white.rwx")
sdk.aw_string_set (AW_OBJECT_DESCRIPTION), "o"
sdk.aw_string_set (AW_OBJECT_ACTION), "create visible no"
rc = sdk.aw_object_change
If rc Then
MsgBox "Unable to change object (reason " & rc & ")"
Else
MsgBox "Object Changed"
End If
End Sub

john

Oct 1, 2003, 9:12pm
A) This should be in SDK.
B) Its AW_OBJECT_OLD_NUMBER not AW_OLD_OBJECT_NUMBER :)

~John

[View Quote]

john

Oct 1, 2003, 9:13pm
Another thing to remember is that each time you change an object, the object
number changes (which can be recorded after AW_OBJECT_CHANGE is called).
Therefore you may only change an object in that method once..... I believe
this is because its the same as doing AW_OBJECT_DELETE and AW_OB JECT_ADD

~John

[View Quote]

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