Ok i just too lazy to read all the manuals. I don't know LUA but maybe I'll try this later and make some report here
https://wiki.hoggitworld.com/view/DCS_func_getPlayers to get all players based on coalitionId (which is only 3, Neutral 0, Red 1, Blue 2). The getPlayers function will return Unit Objects
(https://wiki.hoggitworld.com/view/DCS_Class_Unit) and we can iterate each of them and using
https://wiki.hoggitworld.com/view/DCS_func_getPosition to extract the position, i don't know yet for rotation