Game Development Community

Orc mount

by DejaBlue · in Torque Game Engine · 11/17/2005 (12:08 pm) · 3 replies

I have added a mount3 to orcs left forearm in the dump no problems( yes added mount3 to the player.cfg), i did the unmessdts, i have added in my

shield.cs:

$Shieldslot = 3;

i have added to game.cs:
%player.setInventory(Shield,1);
%player.mountImage(ShieldImage,3);

and it keeps mounting to my feet

any idea why this would happen?

#1
11/17/2005 (12:30 pm)
NM fixed myself forgot the mountpoint in shield.cs
#2
11/17/2005 (12:40 pm)
The $Shieldslot variable defines to which of the the eight image slots of a player, the shield is mounted. Of course, just in case you use $Shieldslot in your mountImage() call, what you are not doing in the above code snipped.

Anyway. The mount slots are kind of logical inventory slots. The do not define the mount position. The just ensure, that cannot mount more than eight images, unless you unmount another image before.

What you are looking for is the mountPoint property in the ShapeBaseImageData datablock of your ShielImage.

You need to lookup the node number or your mount3 node and set the mountPoint property to this value.
e.g:
datablock ShapeBaseImageData(ShieldImage)
{
   ...
   mountPoint = 31;
   ...
}

31 is the value we are using in RealmWars to mount to the left forearm.

-- Markus
#3
11/17/2005 (12:46 pm)
Yea when i added the mount3 to the orc meshe i forgot to add in shapeimage of my shield

mountPoint = 3;

sofar looks like it is working, just moving the mount around some within the arm to get the look right but sofar testing purposes it is mounted correctly now