Game Development Community

How can I use one weapon and two projectiles?

by GameMaker · in Torque Game Engine Advanced · 11/08/2010 (9:56 pm) · 2 replies

Hello everyone!
In my game I wanna use one weapon (image) and two different projectiles. If an user press a left mouse button a weapon fires with one type of projectile and if an user press a right mouse button then a weapon fires with another projectile type. How can I make this?
Please, help me!

#1
11/09/2010 (12:38 pm)
I change a projectile type when I press left or right button, it's working good but when an amount of one of two projectile types is over my weapon doesn't fire even an amount of the second projectile is full. I saw that in the FSM there is an NoAmmo mode, then I commented this. Yeah, now it works fine, but when an amount of one of two projectile types is over my weapon continues to fire: a sound plays and projectile doesn't fly out, my new question is: how can I make the sound doesn't play when an amount of projectile is over?
#2
11/10/2010 (2:52 am)
Hey, guys!
I'm happy! I solved this problem! Yeah!!! Heavy Metal heals my soul!
I didn't modify the engine source cod, only I modified the FSM.