Game Development Community

Flying vehicle + mounted character + weapon

by Emilian Szyburski · in Torque Game Engine · 03/28/2005 (9:30 am) · 0 replies

I'm trying to implement a flying vehicle with the character that has a weapon that can be fired.
I managed to mount a character (using Player class from 3DGPAiO book) in a vehicle (using FlyingVehicle) and mount a weapon (a Crossbow from fps demo) on a character. All is displayed correctly, I can fly the vehicle, but I can't fire the weapon. I added key binding (with the function that calls $mvTriggerCount0++). I added some logs to see what is happening - when I press the mouse button the key binding function is called , but CrossbowImage::onFire is not. So, what can be wrong ? Maybe the player has to be thcontrol object ? (right now the vehicle is )

Does anyone has any idea how to solve this problem ?

Regards
Emil