Welcome Guest! To enable all features please Login or Register.



t1a2l Offline
#1 Posted : Sunday, August 23, 2020 5:00:52 AM(UTC)
Joined: 9/2/2014(UTC)
Posts: 16

Thanks: 1 times
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
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 ; We're closing AddModule because we're not adding any more modules
End; Object
UTD^Force Offline
#2 Posted : Tuesday, August 25, 2020 12:12:15 PM(UTC)
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 795
Location: Middle east

Thanks: 450 times
Was thanked: 161 time(s) in 145 post(s)
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!

Object GLAInfantryRebel
 RemoveModule ModuleTag_07
 RemoveModule ModuleTag_10
   Behavior = StealthUpdate ModuleTag_07
    StealthDelay                = 2500 ; msec
    StealthForbiddenConditions  = ATTACKING USING_ABILITY
    MoveThresholdSpeed          = 3
    InnateStealth               = Yes ;Requires upgrade first
    OrderIdleEnemiesToAttackMeUponReveal  = Yes
  ;;;;;;;;Behavior = StealthUpgrade ModuleTag_10
;;;; ;;; ;  TriggeredBy = Upgrade_GLACamouflage
The lilacs where the robin built,
And where my brother set
The laburnum on his birthday,
The tree is living yet!

"I rarely have many failures. If I'm baking a cake and it fails, it becomes pudding."

"Sometimes I sit and wonder, "why am I not in a mental asylum?" Then I take a good look at everyone around me and realize, maybe I am."

A flower does not think of competing to the flower next to it. It just blooms.
t1a2l Offline
#3 Posted : Tuesday, August 25, 2020 12:17:42 PM(UTC)
Joined: 9/2/2014(UTC)
Posts: 16

Thanks: 1 times
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!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2021, Yet Another Forum.NET
This page was generated in 0.426 seconds.