Forged Alliance Forever Forged Alliance Forever Forums 2016-02-10T13:46:43+02:00 /feed.php?f=41&t=11715 2016-02-10T13:46:43+02:00 2016-02-10T13:46:43+02:00 /viewtopic.php?t=11715&p=119867#p119867 <![CDATA[Re: Flag for ugrading buildings?]]> Statistics: Posted by Hascins — 10 Feb 2016, 13:46


]]>
2016-02-10T13:38:22+02:00 2016-02-10T13:38:22+02:00 /viewtopic.php?t=11715&p=119866#p119866 <![CDATA[Re: Flag for ugrading buildings?]]> Statistics: Posted by nine2 — 10 Feb 2016, 13:38


]]>
2016-02-10T13:27:53+02:00 2016-02-10T13:27:53+02:00 /viewtopic.php?t=11715&p=119865#p119865 <![CDATA[Re: Flag for ugrading buildings?]]> Statistics: Posted by Hascins — 10 Feb 2016, 13:27


]]>
2016-02-10T13:22:18+02:00 2016-02-10T13:22:18+02:00 /viewtopic.php?t=11715&p=119864#p119864 <![CDATA[Re: Flag for ugrading buildings?]]>

Statistics: Posted by nine2 — 10 Feb 2016, 13:22


]]>
2016-02-10T13:10:44+02:00 2016-02-10T13:10:44+02:00 /viewtopic.php?t=11715&p=119862#p119862 <![CDATA[Re: Flag for ugrading buildings?]]> Statistics: Posted by nine2 — 10 Feb 2016, 13:10


]]>
2016-02-10T13:10:09+02:00 2016-02-10T13:10:09+02:00 /viewtopic.php?t=11715&p=119861#p119861 <![CDATA[Re: Flag for ugrading buildings?]]> Statistics: Posted by nine2 — 10 Feb 2016, 13:10


]]>
2016-02-10T13:09:05+02:00 2016-02-10T13:09:05+02:00 /viewtopic.php?t=11715&p=119860#p119860 <![CDATA[Re: Flag for ugrading buildings?]]>
The only way I have found in a UI Mod is to see if a unit is upgrading is this hack:
local focus = unit:GetFocus()
local isUpgrading = unit:IsInCategory("STRUCTURE") and focus:IsInCategory("STRUCTURE")

That doesn't work for ACU upgrades, which are really "enhancements", which require other tricks, which you can see in the Notify mod.

Statistics: Posted by nine2 — 10 Feb 2016, 13:09


]]>
2016-02-10T13:07:37+02:00 2016-02-10T13:07:37+02:00 /viewtopic.php?t=11715&p=119859#p119859 <![CDATA[Re: Flag for ugrading buildings?]]> Statistics: Posted by Hascins — 10 Feb 2016, 13:07


]]>
2016-02-10T13:00:40+02:00 2016-02-10T13:00:40+02:00 /viewtopic.php?t=11715&p=119858#p119858 <![CDATA[Re: Flag for ugrading buildings?]]>
For example you could display a count of enemy tank numbers

Statistics: Posted by nine2 — 10 Feb 2016, 13:00


]]>
2016-02-10T12:36:56+02:00 2016-02-10T12:36:56+02:00 /viewtopic.php?t=11715&p=119853#p119853 <![CDATA[Re: Flag for ugrading buildings?]]>
So it should be possible to implement a line in an UI-Mod that would do something like:

If enemy building "unitstate"=upgrading then create "ping"

??

Statistics: Posted by Hascins — 10 Feb 2016, 12:36


]]>
2016-02-09T19:01:01+02:00 2016-02-09T19:01:01+02:00 /viewtopic.php?t=11715&p=119787#p119787 <![CDATA[Re: Flag for ugrading buildings?]]>
- a new factory unit (the upgraded factory) is created at the same position as the existing factory
- the existing factory enters the 'upgrading' state which can be queried by the code - see function IsUnitState

Statistics: Posted by Sprouto — 09 Feb 2016, 19:01


]]>
2016-02-09T17:53:59+02:00 2016-02-09T17:53:59+02:00 /viewtopic.php?t=11715&p=119785#p119785 <![CDATA[Flag for ugrading buildings?]]> Does a factory that is in transition to t2/t3 have a kind of flag that can be triggered for a mod?

Statistics: Posted by Hascins — 09 Feb 2016, 17:53


]]>