Build Inspector-like application (Sdk)

Build Inspector-like application // Sdk

1  |  


Sep 29, 2002, 1:35pm
Hi all,

I'm writing an application that should work like the standard AW Build

It does the following:
When a new object is added (or an existing one is changed) it checks for the
object's coordinates and size (reading object registry) and verify that the
object is completely inside the area assigned to that particular user.

Now, my problem is that I would like the object be returned to the initial
position (just like Build Inspector) if it gets positioned outside allowed
area. But I cannot see how to obtain old x,y and z coordinates since the
event AW_EVENT_OBJECT_DELETE (called when an existing object changes
position) doesn't set any old coordinates.

Any hint?

Thanks, Ivan

strike rapier

Sep 29, 2002, 5:17pm
Use the AwObject type you should collect when the object is queried, find its number and you can get the X,. Y, Z from that.

- Mark
[View Quote]


Sep 29, 2002, 6:14pm
aw_object_select() might help. I think it sets the position variables.

[View Quote]

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