@@ -30,40 +30,19 @@ local function init()
3030 options = {
3131 {
3232 video = {
33- url = ' https ://cdn.swkeep.com//interaction_menu_internal_tests/test_video .mp4' ,
33+ url = ' http ://127.0.0.1:8080/cdn/TEST%20VIDEO .mp4' ,
3434 loop = true ,
3535 autoplay = true ,
3636 volume = 0.1
3737 }
3838 },
3939 {
40- label = ' Launch Trojan Horse' ,
40+ label = ' (collision) Launch Trojan Horse' ,
4141 icon = ' fa fa-code' ,
4242 action = function (data )
4343 print (" Action 'Launch Trojan Horse'" )
4444 end
4545 },
46- {
47- label = ' Disable Security Cameras' ,
48- icon = ' fa fa-video-slash' ,
49- action = function (data )
50- print (" Action 'Disable Security Cameras'" )
51- end
52- },
53- {
54- label = ' Override Access Control' ,
55- icon = ' fa fa-key' ,
56- action = function (data )
57- print (" Action 'Override Access Control'" )
58- end
59- },
60- {
61- label = ' Download Classified Files' ,
62- icon = ' fa fa-download' ,
63- action = function (data )
64- print (" Action 'Download Classified Files'" )
65- end
66- }
6746 }
6847 }
6948
@@ -81,7 +60,7 @@ local function init()
8160 },
8261 options = {
8362 {
84- label = ' Menu on sphere zone' ,
63+ label = ' (collision) Menu on sphere zone' ,
8564 icon = ' fa fa-code' ,
8665 action = function (data )
8766
@@ -115,7 +94,7 @@ local function init()
11594 },
11695 options = {
11796 {
118- label = ' Menu on poly zone' ,
97+ label = ' (collision) Menu on poly zone' ,
11998 icon = ' fa fa-code' ,
12099 action = function (data )
121100
@@ -132,6 +111,68 @@ local function init()
132111 }
133112 }
134113
114+ local locations = {
115+ vector3 (787.51 , - 2993.77 , - 68.04 ),
116+ vector3 (787.37 , - 2993.8 , - 68.67 ),
117+ vector3 (787.37 , - 2993.8 , - 69.63 )
118+ }
119+
120+ for index , value in ipairs (locations ) do
121+ exports [' interactionMenu' ]:Create {
122+ position = value ,
123+ tracker = " hit" ,
124+ zone = {
125+ type = ' circleZone' ,
126+ position = value ,
127+ radius = 0.5 ,
128+ useZ = true ,
129+ debugPoly = Config .debugPoly
130+ },
131+ options = {
132+ {
133+ label = ' (hit) Menu - > ' .. index ,
134+ icon = ' fa fa-code' ,
135+ action = function (data )
136+
137+ end
138+ },
139+
140+ }
141+ }
142+ end
143+
144+ local locations_2 = {
145+ vector3 (791.01 , - 2990.25 , - 69.59 ),
146+ vector3 (791.03 , - 2990.25 , - 68.75 ),
147+ vector3 (791.05 , - 2990.25 , - 67.97 )
148+ }
149+
150+ for index , value in ipairs (locations_2 ) do
151+ exports [' interactionMenu' ]:Create {
152+ position = value ,
153+ tracker = " hit" ,
154+ zone = {
155+ type = ' boxZone' ,
156+ position = value ,
157+ heading = 0 ,
158+ width = 0.5 ,
159+ length = 0.5 ,
160+ debugPoly = Config .debugPoly ,
161+ minZ = value .z - 0.3 ,
162+ maxZ = value .z + 0.3 ,
163+ },
164+ options = {
165+ {
166+ label = ' (hit) Test ->' .. index ,
167+ icon = ' fa fa-download' ,
168+ action = function (data )
169+ print (" Action 'Download Classified Files'" )
170+ end
171+ }
172+ }
173+ }
174+ end
175+
135176 -- menus[#menus + 1] = exports['interactionMenu']:Create {
136177 -- rotation = vector3(0, 0, 180),
137178 -- position = vector4(808.0, -3011.99, -68.0, 2.82),
0 commit comments