WaxyChicken Posted March 21, 2015 Share 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 Link to comment Share on other sites More sharing options...
WaxyChicken Posted March 21, 2015 Author Share Posted March 21, 2015 oops. never mind.Current Object .... Current TARGET Quote Link to comment Share on other sites More sharing options...
buckmaster Posted March 21, 2015 Share Posted March 21, 2015 We should probably figure out why that crashes. Is %CurrentObject defined to be anything? Quote Link to comment Share on other sites More sharing options...
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.