Page 1 of 1

Shield Recharge Delay

Posted: Mon Jan 24, 2011 8:07 pm
by wishihadaname
I've been playing around with different methods for balancing the units. One of my ideas was to balance out for the Imperials heavy armour and health regeneration by giving the rebels energy shields. It really irks me though that if I give them recharging shields, the shield will recharge all of the time. I want to make a different game mechanic for the alliance, one where you have to take cover after being shot and wait for your shield to come back, not just avoid getting hit too often like the health regenerating imperials. I couldn't find any example of this so I just added a "AddShieldDelay = 15" line to my odf's. Big surprise, nothing happend. Does anyone know of an actual script command that would force the shield to stop regenerating for 15 seconds after being hit?

Re: Shield Recharge Delay

Posted: Tue Jan 25, 2011 11:07 am
by DarthD.U.C.K.
there is no scriptcommand which can do that, the only values you can use are "MaxShield", "AddShield" and for lua "CurShield". you could possibly use a timer and stuff to set the regenerationrate to 0 for a certain amaount of time and then change it back but im not sure if that would be practical, since you needed one for every unit with shield.