Re: Strata jednostki przez sojusznika - HELP
Posted: Sun Mar 07, 2010 3:05 pm
Prawdziwie działający przykład z wykorzystaniem event'u dla zdarzenia przy zabiciu człowieka danej strony przez inną daną stronę:
Dla samego umierania mamy event: UnitGoesToRed
Code: Select all
on UnitDestroyed(un) do
begin
if GetType(un) = unit_human and GetSide(un) = 2 and SideShoot(un) = 1 then
display_strings := 'Amerykancy ubili araba!';
end;