Support for dynamic entities?
by Brandon Maness · in Artist Corner · 05/21/2005 (3:10 pm) · 1 replies
Tom: I remember reading something about your exporter supporting dynamic objects. For example, if I want to place a "Dummy" node in cShop, after I export can I pickup the "dummys" axis, orientation, etc at runtime from script or C++? My thoughts here are dynamic dts shapes placed in the dif.
Also joining dif object modules from script to form a level would be possible using the "Dummy" nodes as markers to line the dif's up.
So, can you create "dummy" nodes in cShop, and pick up their position and rotation from script? If you can, is it also possible to get the length,width, and height of the dummy node?
Thanks,
B--
BTW: I've just had a chance to start playing with your exporter. It's been great so far! Well worth the $12! Ohh, yeah: Can you set cShop to use W,S,A,D as nav instead of arrows?
Also joining dif object modules from script to form a level would be possible using the "Dummy" nodes as markers to line the dif's up.
So, can you create "dummy" nodes in cShop, and pick up their position and rotation from script? If you can, is it also possible to get the length,width, and height of the dummy node?
Thanks,
B--
BTW: I've just had a chance to start playing with your exporter. It's been great so far! Well worth the $12! Ohh, yeah: Can you set cShop to use W,S,A,D as nav instead of arrows?
About the author
Associate Tom Spilman
Sickhead Games
What you read is probably me talking about supporting DTS shapes placed in Cartshop. Early on i considered adding this feature to the CS4 exporter, but with the tricks needed to visualize the DTS shapes in the editor and Cartshop5 being so close to release i decided to wait a bit. That said, support for the GameEntity via the classname "game_entity_unused" (you can guess what that means) is still in the map2dif code used by the exporter. It also supports trigger, door, ai special node, force field, and other entities that do not work in Torque. Back to the point the "game_entity_unused" class will pass any parameters you add to it into the DIF and you should be able to retrieve them, along with the position you placed it, from the InteriorInstance.
I haven't tried any of this, but i probably will be looking into it in the next several weeks.