-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRefpoints2Map_v2.lua
More file actions
45 lines (40 loc) · 1.02 KB
/
Refpoints2Map_v2.lua
File metadata and controls
45 lines (40 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
-- Refpoints2Map_v2 by buur
function getTableSize(t)
local count = 0
for _, __ in pairs(t) do
count = count + 1
end
return count
end
for i = 0, 2, 1 do
--trigger.action.outText(i, 100, false)
Ref2Map = coalition.getRefPoints(i)
--trigger.action.outText(mist.utils.tableShow(Ref2Map), 100, false)
if Ref2Map then
for key, val in pairs(Ref2Map) do
--trigger.action.outText(mist.utils.tableShow(Ref2Map), 100, false)
local id_table = world.getMarkPanels( )
local size_id_table = getTableSize(id_table)
local myCallsigns = {
[0] = "N/A",
[1] = "FORD",
[2] = "EDSEL",
[3] = "DODGE",
[4] = "MAZDA",
[5] = "BANKS",
[6] = "CHEVY",
[7] = "TOWEL",
[8] = "ADDER"}
trigger.action.textToAll(
i,
size_id_table + key,
val["point"],
{0,0,0, 1},
{0.8,0.8,0.8,0.5},
11,
true,
"◊ "..myCallsigns[val["callsign"]]
)
end
end
end