Thread

Object ADD VB-DLL (Sdk)

Object ADD VB-DLL // Sdk

1  |  

basix

May 23, 2003, 1:56pm
Dim rc As Long
With Form1
.sdk.aw_int_set AW_OBJECT_X, mvarObjectX
.sdk.aw_int_set AW_OBJECT_Y, mvarObjectY
.sdk.aw_int_set AW_OBJECT_Z, mvarObjectZ
.sdk.aw_int_set AW_OBJECT_YAW, mvarObjectYAW
.sdk.aw_int_set AW_OBJECT_TILT, 0
.sdk.aw_int_set AW_OBJECT_ROLL, 0
.sdk.aw_string_set AW_OBJECT_MODEL, mvarObjectGUID
.sdk.aw_string_set AW_OBJECT_DESCRIPTION, mvarNPCDetails
.sdk.aw_string_set AW_OBJECT_ACTION, ""
rc = aw_object_add
If rc <> 0 Then
Form1.sdk.aw_say "NPC Creation FAILURE! Reason[" & rc & "]"
Else
mvarObjectNumber = .sdk.aw_int(AW_OBJECT_NUMBER)
Debug.Print aw_object_load
End If
End With


Doesnt seem to be working correctly. It returns RC = 0 yet, nothing appears
in the world?
Anyone have a sample that works with the COM DLL ?

-BasiX

strike rapier

May 23, 2003, 4:23pm
you HAVE actually checked your aiming at the right place?

- Mark

[View Quote]

basix

May 23, 2003, 10:08pm
Yep all of them are at 0,0,0

Even had a preston scan for the object, to no luck.

-Basix


[View Quote]

scuz

May 24, 2003, 2:52am
hmmmmmmm did u think bout use sdk.aw_object_add.
it might be good to call the actual command :P
*chukles*

[View Quote]

baron

May 24, 2003, 8:08am
In article <3ecefa78$1 at server1.Activeworlds.com>, webmaster at awscape.com says...
> hmmmmmmm did u think bout use sdk.aw_object_add.
> it might be good to call the actual command :P
> *chukles*
>
[View Quote] Good catch Scuz...in fact it goes back to what I suggested countless times, if
you had used Option Explicit, the compiler would have caught that.
Tools/Options/Editor/Require Variable Declaration.

--
Baron

scuz

May 24, 2003, 1:59pm
hehe, took me a while to see it. but then i noticed it was missing sdk.
[View Quote]

strike rapier

May 24, 2003, 8:34pm
gah I didnt see that until I was looking at it from the other side of the
room >_<.

Personally though I use global functions such as aw_int_set and aw_int etc
and simply replace em using find and replace before I coompile for release.

- Mark

[View Quote]

basix

May 26, 2003, 2:45pm
Well son of a b... haha thanks guys. :-\

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