mx1
Posts: 76
Joined: 1/16/2014 Status: offline
|
Setup #1 I have created sample scenario with three helos with different names. I've created three separate triggers for each of them remaining in the area for 1 minute. The action is simple Lua script which just pops up message box saying which unit has GetUnitX() returned. There are three separate events, each with separate trigger, and just to be on the safe side, each event has separate action object, although all actions have the same script. Expected behavior After scenario runs for 1m, we should get three message boxes, each with the name of the helo which triggered the event. Actual behavior After scenario runs for 1m, we get three message boxes, each with the name of the helo number #3. The message logs shows that events corresponding to three different helos have been fired. Conclusion #1 There is a bug within GetUnitX(). It seems that if there are multiple triggers within the same time window (1 minute???) GetUnitX() always returns first unit which triggered 'unit remains in the area'. Setup #2 Same scenario as Setup #1. Deleted helos from the scenario, did not touch triggers. Added event triggered by time (2m into scenario)which fires Lua script that adds three helos of the same unit type as deleted units and with exactly the same unit names. Expected behavior After scenario runs for 2m, three helos should appear and after additional 1 minute we should get three message boxes, each with the name of the helo which triggered the event. Since we know that there is a bug #1 we could also expect that all three message boxes show the same unit name. Actual behavior After scenario runs for 2m, three helos appear inside the designated area. Nothing more happens during scenario run even after 10m. Conclusion #2 The triggers work as I've wrote in my previous post, that is deleting unit specific trigger invalidates trigger. In my opinion this is WAD since triggers should be related to guids not names and trigger editor UI shows names just for convenience. Final conclusion I am still looking for the solution of my use case. Both test scenarios attached in .zip file. EDIT Tested this with both 775.12 and 775.13 with the same results.
Attachment (1)
< Message edited by mx1 -- 2/2/2016 7:16:33 PM >
|