how to get the list of objects/vehicles/... on the current map ?

Your forum for all discussions around Modding.
wahtev
Posts: 1
Joined: Tue Sep 05, 2023 8:33 pm

how to get the list of objects/vehicles/... on the current map ?

Post by wahtev »

Hi guys, i'm new to FS22 modding and i'm kinda lost
I'm trying to get the list of the pallets instances currently in the world but i can't find such a function nor i can find how to search for it..
I saw the paletts where saved in a file called vehicle.xml and got tag like <vehicle filename="data/objects/pallets/clothesBoxPallet/clothesBoxPallet.xml" so i'm not really surprised that it's hard to find something when conceptually it's already such a mess.. Ofc paletts are considered vehicles its pretty obvious and prettu handy to go from point A to point B faster than with your bear feet.. oO

But since there are some modders i suppose there would be some doc/reference for the framework, but i can't really find one.
For example i see the g_currentMission global object often used in lua script but i can't find a list of its methods and properties online does it means i have to DebugUtil.printTableRecursively(g_currentMission,".",0,5) everything ??!

Thank you for your answers guys.