Loading DTS into Gui TsCtrl
by Steve Tungate · in Torque Game Builder · 02/07/2007 (10:44 pm) · 2 replies
Hello. I am working on a Starsiege mod. I would like to have a window in the gui that would load the .dts models in the Shapes/Player folder. I've been looking around for tutorials but so far have came up empty handed. Basically I would like it so when you click on a bitmap of said "herc" the dts will appear in a tsctrl window of some sort...then you can select a weapon model and the weapon will appear on the model in the window. Any help on this would be greatly appreciated. Thanks.
About the author
#2
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3659
If you cant get it working, you should think about the problem a different way. Maybe render screenshots of your models and use png images instead of a 3d models. At least it would be a working solution until you figure it out.
02/27/2007 (3:27 pm)
Not sure if you have access, but here is a link to a dts gui viewer class. I've never used it so good luck:www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3659
If you cant get it working, you should think about the problem a different way. Maybe render screenshots of your models and use png images instead of a 3d models. At least it would be a working solution until you figure it out.
Steve Tungate
http://img02.picoodle.com/img/img02/7/2/18/f_Maverick2m_f607f7a.jpg
so for mount1 i could use on the GUI button:
hercwindow.mountObject("emp", "fps/data/shapes/emp/emp.dts", "", "maverick", "mount1", "");
hercwindow is the name of the window the shape appears in (maverick) so you will actually see the weapon appear on the maverick in the window on the mount specified. What I need help with is getting that Vehicle to spawn with what weapons i selected in the gui... PLEASE HELP.. this is really holding us back on our project.