Game Development Community

Weapons won't fire (multiple guns at once)

by Michael A Bocchi · in Torque 3D Professional · 01/14/2010 (1:59 am) · 0 replies

I have run into a problem that I can't figure out. I have 4-5 guns mounted on the player at once and I would like to get them to all fire ate once using just the left mouse button. I tried going into the source code in Player.cc in the Player::updateMove(const Move* move)
// Trigger images
   if (mDamageState == Enabled) 
   {
      setImageTriggerState( 0, move->trigger[0] );   //Edit: Lets try firing all 5 slots at once
	  setImageTriggerState(1,move->trigger[0]);
	  setImageTriggerState(2,move->trigger[0]);
	  setImageTriggerState(3,move->trigger[0]);
	  setImageTriggerState(4,move->trigger[0]);
}

All this did was make it so that when I press the left mouse button weapon mount0 fires. and If I press the right mouse button weapon on mount1 fires, but nothing else.

Does anyone know of a way to get all of the weapons to fire at once?