Question:
Facilities can be built over existing facilties (buildOverFacilities). Is it possible to reduce cost of the new facility (or refund cost of the old facility) to simulate "upgrading" facilities (i.e. upgrading from level 1 to level 2 costs less than building a new level 2 facility)? It is possible to refund money using refundValue, but this applies for dismantling in general, not only for building over an existing facility.
Additonal question (though I am not sure if this belongs here or under help):
How exactely is weapon position on units defined in regards to shot trajectory? Are terrain slopes acurately represented on the battlescape?
Case in point, I just got shot at by an alien unit (gazer) which I presume should have been occluded by terrain (the weapon, at least):
![](https://abload.de/thumb/screen016ezksb.png)
![](https://abload.de/thumb/fpslook00398kof.png)
![](https://abload.de/thumb/fpslook004dtjtv.png)
![](https://abload.de/thumb/fpslook0058kjtg.png)
(last image is the position I got shot at)
Where exacately are weapons located on units?