Script Reference guide for Procedural Modeling.

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.

Script Reference guide for Procedural Modeling. // Archive: Tech Forum

1  2  3  |  

Post by Johny // Apr 4, 2006, 6:25am

Johny
Total Posts: 672
pic
Tomasb, I'm still don't know how to create IRdInputState. And how to call GetKeyState function.
Can you give an example code ( for example I want to check for "0x070" virtual code)
I tried:

if (params.ConDataObject("IRdInputState.GetKeyState(0x070)") != 0) System.Alert("???");
but not success :(

Thanks

Post by tomasb // Apr 4, 2006, 8:48am

tomasb
Total Posts: 261
Unfortunately that data object was not intended for script use, it does not implement IDispatch...


I will add function for quering keyboard states...

Post by Johny // Apr 4, 2006, 4:51pm

Johny
Total Posts: 672
pic
I Think it's also need to add 'ESC' monitoring while script on running. So user can stop/interrupt script process while it's running . This's usefull for save us from never ending loop while testing some script code ;)

Post by peterma // Apr 5, 2006, 7:00am

peterma
Total Posts: 48
Yes, this is missing so far, quite easy to end up with neverening script loop especially when playing with recursion (like I did in latest mines script game)
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