WaxyChicken Posted March 21, 2015 Posted March 21, 2015 My turrets keep shooting at RigidShape objects (eg: the boulders)so in the code i tell it to add RigidShapes to it's Ignore List.The turret takes aim at the object, the script kicks in... and the game crashes.why?%obj = turret %CurrentTarget = %obj.getTarget(); if(isObject(%CurrentTarget)) { if(%CurrentTarget.getClassName() $= "RigidShape") { %obj.addToIgnoreList(%CurrentObject); // <--- this line crashes game } } Quote
WaxyChicken Posted March 21, 2015 Author Posted March 21, 2015 oops. never mind.Current Object .... Current TARGET Quote
buckmaster Posted March 21, 2015 Posted March 21, 2015 We should probably figure out why that crashes. Is %CurrentObject defined to be anything? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.