Advanced 3dgpai1: chapter 10
by Nathan · in Torque Game Engine · 04/10/2006 (7:47 am) · 4 replies
I'm trying to get the hit locations to work(pg. 284), but when I add the code to Armor::Damage when I go in the game and shoot something no damage is given?
Torque Owner Nathan
echo("REGION: " @%region); switch(%region) { case "head": echo("case = head"); %damage = %damage * 2; case "torso": echo("case = torso"); %damage = %damage; case "legs": echo("case = legs"); %damage = %damage / 2; }now when I shoot kork in-game, I get "REGION: legs" which is fine but below that I get "case = head"? So for some reason case head is being called all the time?