Game Development Community

Some questions about TorqueScript and others

by Manuel M · in Torque 3D Professional · 08/08/2010 (1:51 am) · 3 replies

Hello!
After a while, I come back to Torque 3D. This time I start seriously and I have very eager to learn! (also more time).
I come back with some questions. My first question is very basic, but now I don't remember how to program on TorqueScript. Ok, I created a new project (with full template), then, I added a rock (TTStatic) to the scene. Now, I want if the player collides with this rock, the rock disappear, or change the position of it. How I can do this? Where do I put the script, in the client or server folder? I have to initiate this script from another script?

Another question... I have see several videos of Torque 3D, and I see that Torque 3D have a Forest editor, but my Torque 3D don't have it, Why? Maybe not Torque 3D or maybe another version? I have the Torque 3D binary version, so I have torque 1.0.1.

I think that is all, thanks and greeting!

#1
08/08/2010 (2:01 am)
Well I can answer about the forest editor. Right now that is in the beta and once a stable release is made the binary will be updated and you will have access to the new version with the forest editor.
#2
08/08/2010 (2:37 am)
TsStatics are for objects which do not do anything. StaticShape uhhh ... bad name ... are dynamic - should be called DynamicShape - so they can do things like respond to onCollision callbacks. So you'd want to make a new StaticShape using the rock model, and delete it or change it's position using it's onCollision function.

So, go look for staticshape in the folder and ... wtf ... there is no staticshape example in T3D ... :/

Ah hell, here's a quick tutorial on what you want. linky


Quote:
now I don't remember how to program on TorqueScript
Good news, there are some reference documents at last! Read this for the download info
#3
08/08/2010 (3:08 am)
Thank you very much!

Quote:Well I can answer about the forest editor. Right now that is in the beta and once a stable release is made the binary will be updated and you will have access to the new version with the forest editor.
Ah, ok, I'm impatient to arrival of Torque 3D 1.1 new tools, best performance, etc, etc, must be great!

Quote:StaticShape uhhh ... bad name ... are dynamic - should be called DynamicShape
Yeah, maybe the name should be changed, can be a bit confusing, I already knew that (but I don't was sure if the static mesh have some options dynamic).

Quote:Good news, there are some reference documents at last! Read this for the download info
Yesterday I download the new documentation (is the full documentation? I see a big work!). Now I'm seeing this doc.

Thank you very much one more time!