Game Development Community

Mount point(s) problem

by Kimberly Unger · in Torque Game Engine · 09/08/2003 (10:18 am) · 1 replies

We are trying to create a player that has two (2) weapons premounted. The player is a vehicle and we have created two mount points (mount0, and mount1). these points are about 160 degrees apart. The weapons Caled B and S have the following in there respective cs files

B.cs
.
.
mountPoint = 0;

S.cs
.
.
mountPoint = 1;

Weapon B mounts just fine on the ship's mount0, but Weapon S is getting mounted to Contrail0 and not Mount1;

We followed the examples given with Deathcar. What is happening?

#1
09/09/2003 (8:48 pm)
Try mounting these to the next highest slot you have based on the number of seats you have.. Remeber that mount0 is the drivers position and each passenger takes a mount slot after that, so If you have a 2 person car, mounts 0 and 1 are used. Next mount your weapons on mount2 and 3..

In your weapons image datablock you should be able to set its offset in x, y, z and align the weapons up accordingly. The option may not be writen there but it does exist.

offSet = "x y z";

If you need an example of this I believe I have a working one, just let me know if you cannot get it working. There should be no reason to edit the engine for multiple mounts.