[Request, PRPL] No way to detect CM position on a ship?

Started by kajacx, March 28, 2017, 06:10:11 PM

Previous topic - Next topic

kajacx

There seems to be no way to detect Command Module position on a ship in PRPL (or any kinf of info on placed modules in general). There is way to detect hull width, height and hull at position, which is great, but no way to detect CM position. Something like:

<-shipID GetCMPosition ->y ->x
#or
<-shipID GetCMPositionX ->x
<-shipID GetCMPositionY ->Y

would do. It can return the center piece of the CM, or the left-bottom corner, doesn't really matter (both are preferable in different situations)
Why do work yourself, when you can write a program that will do the work for you.