Jump to content

Recommended Posts

Posted

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?

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...