- Select the missile, in the Tags field enter "missile" and reset the z offset back to 0 then hit Adjust
- Select the Scripting Tab, for the name enter "missile_adjust" or whatever you want, for the Tags field enter "missile" and for the content enter:
function UpdateS()
-- print(shape2D.TStart.x);
-- print(shape2D.TStart.y);
if (shape2D.TStart.x == 2 and shape2D.TStart.y == 4) then -- if it is located at the counter position then apply the offset
shape.Offset.z = shape.Offset.z - 25;
end
end
Hit add script and resume the game.
If it doesn't work, please uncomment two print calls (remove -- at the beginning) and hit adjust then resume the game then view the log window at the right of Scripting tab to detect those values. Then replace == 2 and == 4 with the correct values, and of course re-comment or delete the print calls and finally hit Adjust again.