Page 2 of 2

Re: Strata jednostki przez sojusznika - HELP

Posted: Sun Mar 07, 2010 3:05 pm
by Radzio
Prawdziwie działający przykład z wykorzystaniem event'u dla zdarzenia przy zabiciu człowieka danej strony przez inną daną stronę:

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;
Dla samego umierania mamy event: UnitGoesToRed