Posted by: t1a2l - Sunday, August 23, 2020 6:00:52 AM
The code below causing crash on load. I am trying to remove the stealth module of the rebel and add a different one Object GLAInfantryRebel RemoveModule ModuleTag_07 AddModule Behavior = StealthUpdate ModuleTag_GPSStealth01 StealthDelay = 2000 ; msec StealthForbiddenConditions = NONE HintDetectableConditions = IS_FIRING_WEAPON InnateStealth = Yes RequiredStatus = REASSIGN_PARKING ;Used exclusively by the GPS Scrambler OrderIdleEnemiesToAttackMeUponReveal = Yes End End ; We're closing AddModule because we're not adding any more modules End; Object

Posted by: UTD^Force - Tuesday, August 25, 2020 1:12:15 PM
Hi there, the crash is caused by another behaviour for the rebel. It is 'StealthUpgrade ModuleTag_10' after removing this module, the game should not crash. I've left it commented out in the code below in case you want to know what the module is. Good luck! [code=plain]Object GLAInfantryRebel RemoveModule ModuleTag_07 RemoveModule ModuleTag_10 AddModule Behavior = StealthUpdate ModuleTag_07 StealthDelay = 2500 ; msec StealthForbiddenConditions = ATTACKING USING_ABILITY MoveThresholdSpeed = 3 InnateStealth = Yes ;Requires upgrade first OrderIdleEnemiesToAttackMeUponReveal = Yes End End ;;;;;;;;Behavior = StealthUpgrade ModuleTag_10 ;;;; ;;; ; TriggeredBy = Upgrade_GLACamouflage ;;;;;;;;End End[/code]

Posted by: t1a2l - Tuesday, August 25, 2020 1:17:42 PM
Hi, thanks for the replay i found the issue, i forgot to mention i use ROTR and the rebel object there has "var1" attached. thats why the crash. anyway it doesn't crash but my rebels are not getting stealth. so maybe your solution will solve it. Maybe i need to remove the upgrade and the stealth and then add mine. Thanks anyway!