Jump to content

Drain.Amount

From ModEnc²
Revision as of 08:11, 1 September 2024 by en>Testid123 (Created page with "{{Flag |name={{PAGENAME}} |files={{Categ|Rules(md).ini}} |values={{Values|integer}} |default=0 |types={{categ|TechnoTypes}} |ares=yes |aresflag=yes }} The amount of power drai...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: Drain.Amount
File(s): Rules(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: TechnoTypes

This flag is part of Ares. Do not use it without Ares installed.



The amount of power drained from a power plant of the victim player. Requires Drain.Local=yes on either the draining unit or the drained building. If positive, this is the maximum amount of power drained. If negative, this is the minimum amount of power drained.

The start value is the victim building’s Power, then the draining unit’s Drain.Amount is applied, and finally the drained building’s Drain.Amount.