RTS Documentation - Rockets not firing
by David Jarvis · in Torque 3D Beginner · 09/11/2010 (7:57 am) · 2 replies
Hi All,
Ive been going through the RTS documentation on the demo version of Torque 3D, but Ive run into a problem I cant seem to crack. Im at the part in the documentation where a left click aims the player at a bot and fires at at it, but when I run it, the player dosent seem to fire. The player does aim at the bot, but no rockets are fired.
Is this a known issue issue with the documentation or a new version of Torque or did I miss something?
Thanks
-David
Ive been going through the RTS documentation on the demo version of Torque 3D, but Ive run into a problem I cant seem to crack. Im at the part in the documentation where a left click aims the player at a bot and fires at at it, but when I run it, the player dosent seem to fire. The player does aim at the bot, but no rockets are fired.
Is this a known issue issue with the documentation or a new version of Torque or did I miss something?
Thanks
-David
#2
09/12/2010 (3:06 pm)
Yep, that's most likely correct... haven't looked at the RTS prototype code in a year and don't remember it that well, but due to the nature of the stock inventory code if you don't actually state that any given player datablock can have these items to use then they can't even pick them up or use them.
David Jarvis
maxInv[RocketLauncher] = 1;
maxInv[RocketLauncherAmmo] = 20;
maxInv[GrenadeLauncher] = 1;
maxInv[GrenadeLauncherAmmo] = 20;