forked from JohnnyCheese/TTS_X-Wing2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHyperspace marker.36ae82.ttslua
61 lines (58 loc) · 1.9 KB
/
Hyperspace marker.36ae82.ttslua
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
markers = nil
function onLoad()
self.addContextMenuItem("Setup Aces High", toggleAcesHighSetup , false)
end
function toggleAcesHighSetup()
if markers == nil then
markers = {}
self.takeObject({
position = {-15.25, 0.97, -4.90},
rotation = {0.00, 44.92, 0.00},
flip = false,
smooth = false,
callback_function = function(obj)
obj.setLock(true)
table.insert(markers, obj)
end
})
local mark2 = self.takeObject({
position = {-32.36, 1.06, -11.83},
rotation = {0.00, 314.99, 180.00},
flip = false,
smooth = false,
callback_function = function(obj)
obj.setLock(true)
table.insert(markers,obj)
end
})
local mark3 = self.takeObject({
position = {-25.21, 0.97, 4.80},
rotation = {0.00, 225.00, 0.00},
flip = false,
smooth = false,
callback_function = function(obj)
obj = obj.setState(2)
obj.setLock(true)
table.insert(markers, obj)
end
})
local mark4 = self.takeObject({
position = {-8.73, 1.06, 11.79},
rotation = {0.00, 134.98, 180.00},
flip = false,
smooth = false,
callback_function = function(obj)
obj = obj.setState(2)
obj.setLock(true)
table.insert(markers,obj)
end
})
else
for k, marker in pairs(markers) do
if marker != nil then
marker.destruct()
end
end
markers = nil
end
end