Jump to content

Drain.Amount: Difference between revisions

From ModEnc²
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..."
 
m 1 revision imported
(No difference)

Revision as of 21:41, 31 March 2025

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.