Game Development Community

Question about ConsoleFunction()

by Nachi Lau · in Torque Game Engine · 12/10/2003 (2:03 am) · 1 replies

Hello,

I want to know more about how to use the ConsoleFunction(). In the documentation, the exmple only show that we can get the parameter from argc (integer) and argv (array of strings). However, if I need to pass some other data structure, what can I need to do, eg, if I need to pass the data type Point3F, how can I do with this? Which array I should access?

Thanks!

Nachi

#1
12/10/2003 (6:15 am)
You will need to parse the values from the strings. Look at setTransform on SceneObject.