Hollander Posted November 2, 2020 Posted November 2, 2020 Hello everyone. I am creating an online mission on two sides. Where there is a check for the destruction of each unit of ground vehicle. At first I wrote a script through the event dead. But this event does not work stably online. Now I want to do it through the table and check the life. local blueUnits = mist.makeUnitTable({'[blue][vehicle]'}) for i = 1, #blueUnits do if Unit.getByName(blueUnits) and Unit.getByName(blueUnits):getLife() == 0 then trigger.action.setUserFlag('2500', true) end end Can someone correct my script?
Recommended Posts