Difference between revisions of "Unit Object"

From Baloogan Campaign Wiki
Jump to: navigation, search
 
(No difference)

Latest revision as of 23:42, 27 November 2014

<syntaxhighlight lang="lua">

f16 = ScenEdit_GetUnit({side='South Korea', name = 'Falcon #1'})

f16.latitude = "N 01.01.01" f16.longitude = "W 01.01.01" f16.altitude = "5000 ft" f16.course = { {latitude='-31.7172802660009', longitude='8.89823244427383'}, {latitude='-37.6469164618808', longitude='-46.5274844220011'}} f16.name = "F-16 Alpha" my_guid = f16.guid


f16.mission = "AFRICOM CAP" ScenEdit_AssignUnitToMission(f16.guid, "AFRICOM CAP") ScenEdit_SetEMCON("UNIT",f16.guid,"RADAR=ACTIVE")


f16.delete()

</syntaxhighlight>