841
Modification Help / Re: Why is it not echoing %pl.rads
« on: July 09, 2015, 09:48:54 PM »That's like comparing %obj.getDatablock() == 0. The compiler will optimize the operands and think it's an integer (and non-numeric strings default to 0)
if(%object.getDatablock() == nameToID("ScrapElectronicsBrickData"))
(or .getID(), up to you)
Whoops. You're right. I forgot that Torque doesn't tokenize identifiers because it was made by monkeys. Edited the original code.