Lineaxe Posted July 27, 2020 Posted July 27, 2020 (edited) Well, I tried out some code to move some Statics up in height from their original location I placed them in using mission editor. I tried Respawn & Spawn methods which I have used elsewhere in the code with success. This time it moved them to the new location and somehow duplicated them and stacked the new statics on top of the ones I had moved. It flagged errors for each static object that got moved that started with the error table index is nil in function AddInDatabase in function xpcall in function onEvent in function ReSpawnAt in function tail call in function xpcall (note I skipped a lot of the blah blah in between) Anyhow it flags those message in dcs.log based off the table index is nil error. Now I had just used the point based table to move the static, and it moved it, so I don't know why it would be nil on the next line of code which is the call to method ReSpawn. Anyhow , these errors show up ONLY once when the mission starts up and the result is something that I really like. That is the double stacking of the statics . Some of them happen to be oil tanks as cargo loads. When I go to pick them up with the sling, If I am a bit careless with one on the top row, it topples off ,falls onto the deck and blows up !!! Well, Ok the code might be a be funky, but I just Love what it does now!!! Just thought I would share :vertag: Edited July 27, 2020 by Lineaxe
Recommended Posts