13.02.2013, 00:08
(
Last edited by Pottus; 02/11/2015 at 05:01 AM.
)
A few days ago I was thinking if it would be possible to create an in game RemoveBuildingForPlayer() for my map editor. I knew I would need a list of all the objects in GTA SA and their positions to make it happen so I went ahead extracting all the object data from all the .IPL's processed them into an array.
ENUM
Test position when using test array since it takes a few minutes to compile with the full array list this will help out.
There are no LOD objects in the list the object positions have their LODModel counterpart listed so using RemoveBuildingForPlayer() for both model and LODmodel should remove the building.
Known issues:
There are a few objects that might not actually have a LODModel associated but is listed anyways although not very many and really should be so much an issue as these objects are often small components of a house for example that has the same position as house object.
The rotation values may not be 100 percent precise for all objects.
File:
https://www.mediafire.com/?2c8ywc3h1veza4p
ENUM
Code:
enum SearchInfo { Search_Model, Search_LODModel, Search_Model_Name[64], Float:SearchX, Float:SearchY, Float:SearchZ, Float:SearchRX, Float:SearchRY, Float:SearchRZ }
Code:
CMD:testpos(playerid, arg[]) { SetPlayerPos(playerid, 3.6618,-2594.0713,39.7159); return 1; }
Known issues:
There are a few objects that might not actually have a LODModel associated but is listed anyways although not very many and really should be so much an issue as these objects are often small components of a house for example that has the same position as house object.
The rotation values may not be 100 percent precise for all objects.
File:
https://www.mediafire.com/?2c8ywc3h1veza4p