Game Development Community

Mounting objects

by Lukas Joergensen · in Torque Game Engine · 10/14/2008 (10:54 am) · 7 replies

When mounting objects to a player whats the commands for that and which bodyparts does it mount to?
-Is it defined by the mounting object or an command?
And if you are mounting armors does it then auto scale?

#1
10/14/2008 (1:02 pm)
From what I understand, the art object (i.e. player.dts) has to have the mount points established during its creation so that they (the mount points) are exported as part of the .dts

I believe player.dts (the orc) has 2 mount nodes, one on each hand, and the crossbow has 2 mount points, which the hands "mount" to.

That's about as far as I get, sorry. I'm guessing that the player.dts has other mount nodes, but I don't know where.

So your armor needs to have a mountPoint embedded in the .dts also.

Tony
#2
10/14/2008 (2:43 pm)
Thank you so much :) Bu u know how to make these mountpoints?
#4
04/09/2009 (10:52 am)
http://tdn.garagegames.com/wiki/DTS/Scripting/Guide

is there a guide that's actually filled out?
I'm working on a mech game where the parts mount to various mount points on the skeleton, and this would be a huge help to get moving in the right direction
#5
08/23/2009 (1:33 pm)
I am also in troubled by the object mounting problem. I have tried mountObject(%obj, index), mount(%srcObj, %offsetX,%offsetY, ........), but still does not work. I have object A, and Object B, what I want to do is to mount A to B when A collide with B. Sincerely hope some one could give advice. or sample for object mounting.


Best Thanks.
#6
08/23/2009 (2:19 pm)
The starter kits and demos are filled with examples. Look at how weapons are mounted to the player, or the flag being mounted to the player in the demo, and even how players are mounted to a vehicle.

WeaponImage to Player (Image to Object mounting)
%obj.mountImage(%data.image, $WeaponSlot);
  • %obj = the object that's being mounted to
  • %data.image = the datablock name of the weaponImage to be mounted to %obj
  • $WeaponSlot = the mountpoint to use

  • Player to Vehicle (Object to Object mounting)
    %col.mountObject(%obj,%node);
  • %col = the object to be mounted
  • %obj = the object doing the mounting
  • %node = mount location

  • Everything else follows those examples.
    #7
    01/09/2010 (3:31 pm)
    He said "mountObject" you said "mountImage" I think there is a difference. I wanted to mount an object to a player like a helmet but had to mountImage of a helmet. I made a light for my helmet object but can't attach it to a mountImage. Bit confusing to people I think. How do you mountObject to a player?