- scope NeuerTurm initializer Init
- private function Actions takes nothing returns nothing
- call DisplayTextToForce( GetPlayersAll(), "Test1")
- if GetUnitTypeId(GetEnteringUnit()) == 'h001' then
- call SetzeNeueEinheit(100, 0, 10, 1200, 4)
- endif
- if GetUnitTypeId(GetEnteringUnit()) == 'h002' then
- call SetzeNeueEinheit(100, 0, 1, 600, 0.2)
- endif
- if GetUnitTypeId(GetEnteringUnit()) == 'h003' then
- call SetzeNeueEinheit(100, 0, 15, 300, 1.5)
- endif
- if GetUnitTypeId(GetEnteringUnit()) == 'h004' then
- call SetzeNeueEinheit(100, 0, 10, 600, 2)
- endif
- if GetUnitTypeId(GetEnteringUnit()) == 'h000' then
- call SetzeNeueEinheit(100, 0, 50, 600, 10)
- endif
- endfunction
- private function Init takes nothing returns nothing
- local trigger NeuerTurm = CreateTrigger()
- call TriggerRegisterEnterRectSimple( NeuerTurm, GetEntireMapRect() )
- call TriggerAddAction( NeuerTurm, function Actions )
- endfunction
- endscope
- Sprache wählen
- Style wählen
goto: