JScript Object command problem

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

JScript Object command problem // Archive: Tech Forum

1  |  

Post by Image3D // May 29, 2008, 1:35pm

Total Posts: 6
I am trying to user this command to advance the scene to a frame inside a Jscript Object and I am getting a error:

tSBridge.PutActiveFrame('', 10);

Some tipo ?

Post by Jack Edwards // May 29, 2008, 2:00pm

Jack Edwards
Total Posts: 4062
JScript object can only access their own member variables and functions. You need to use a JScript Command to use the global functions.

Post by Image3D // May 29, 2008, 3:39pm

Total Posts: 6
Thanks for your reply.

I could not get the Jscript Command to be trigger from another object.

I need the tSBridge.PutActiveFrame('',100); command to be activated when the yaw value of another object changes its value.

Post by Jack Edwards // May 29, 2008, 3:59pm

Jack Edwards
Total Posts: 4062
This is one of the more frustrating stumbling blocks in TS. It's just one of those things where you have to see how someone else solved it before it makes sense. ;)

Try this thread and see if it helps point you in the right direction:

More specifically this thread on Function Sets:
If I recall correctly, you can call Function Sets from inside Script Objects... So basically you'd need to create a FunctionSet that hands all the command script type stuff, then call that from inside your Script Object when the Yaw value changes.

Post by Image3D // Jun 1, 2008, 2:29am

Total Posts: 6
Hi Jack,

Thanks for the links. I am trying it and will came back later.

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