Multiple Weapon Mounts on Vehicles
by Daniel Neilsen · in Torque Game Engine · 06/16/2002 (3:55 pm) · 8 replies
Hi Guys.
I am having a little bit of a hassle at the moment with a very strange occurance and I was wondering if any of you guys have any ideas about it.
What I have is a vehicle that has four seperate weapons.
0) Left Gun
1) Right Gun
2) Bomb (center front)
3) Mine (center rear)
Now all my scripts are working fine, it is adding the weapon images fine and the triggers are operating the images fine. Now my modeller swears blank and blue that the weapon nodes are in the correct positions and that they have exported correctly, and the dump file also seems to indicate this.
The problem comes about that the left gun shoots from the left hand side but so does the right gun and the bomb. The mine fires from the center rear like it is supposed too though.
Anyone have any suggestions on things to check or possible things that may have gone wrong? I have tried everything I can think of
Thanks Guys
I am having a little bit of a hassle at the moment with a very strange occurance and I was wondering if any of you guys have any ideas about it.
What I have is a vehicle that has four seperate weapons.
0) Left Gun
1) Right Gun
2) Bomb (center front)
3) Mine (center rear)
Now all my scripts are working fine, it is adding the weapon images fine and the triggers are operating the images fine. Now my modeller swears blank and blue that the weapon nodes are in the correct positions and that they have exported correctly, and the dump file also seems to indicate this.
The problem comes about that the left gun shoots from the left hand side but so does the right gun and the bomb. The mine fires from the center rear like it is supposed too though.
Anyone have any suggestions on things to check or possible things that may have gone wrong? I have tried everything I can think of
Thanks Guys
About the author
#2
all the nodes are called mount0 mount1 etc etc
and the mountimage command calls the correct numbers.
Everything seems to mount and operate correctly....except they are in the wrong place LOL
Its very strange.
06/16/2002 (5:28 pm)
Yeah, all the nodes are called mount0 mount1 etc etc
and the mountimage command calls the correct numbers.
Everything seems to mount and operate correctly....except they are in the wrong place LOL
Its very strange.
#3
06/16/2002 (6:04 pm)
check the dump file to make sure all the mounts get exported
#4
06/16/2002 (6:15 pm)
Yes, the mount points are getting exported. But even if they were not then the weapon images would be mounted at the center of the vehicle, not on the left hand side where mount0 is.
#5
If it is defined that is where the image will mount and fire from.
06/16/2002 (6:34 pm)
Did you define the mountPoint in the datablock?If it is defined that is where the image will mount and fire from.
#6
It is not a mountable vehicle. The vehicle is the player in this game.
It almost looks like the weapon images for 0 1 and 2 are mounting on mount0 instead of mount0, mount1 and mount2.
06/16/2002 (11:21 pm)
There is no mountPointIt is not a mountable vehicle. The vehicle is the player in this game.
It almost looks like the weapon images for 0 1 and 2 are mounting on mount0 instead of mount0, mount1 and mount2.
#7
Look in the weapon Datablock for the mountPoint definition
06/17/2002 (12:21 am)
Sorry... should have been more specific.Look in the weapon Datablock for the mountPoint definition
Torque 3D Owner Phil Carlisle
Also, are the mounts in the model called the correct things?
Phil.