MEASUREMENT interior.
#1

hey! I have a problem. I would like to calculate the building MEASUREMENT (in meters) specifying the highest point of the building's interior and the furthest north, south west and east. However, I do not quite know how to go about it, help me!
Reply
#2

You can use the model sizes but that isn't probably going to give you what your looking for the alternative is to generate this data yourself which means you would have to dive into GTA's data and generate the arrays yourself.

Data like this I am guessing:

pawn Код:
enum ObjectSizeData { Float:xnorth, Float:ynorth, Float:znorth, Float:xsouth, Float:ysouth, Float:zsouth, Float:xeast, Float:yeast, Float:zeast, Float:xwest, Float:ywest, Float:zwest, }
Another issue with doing this is you need to translate these static positions to the correct rotation of the object your checking that is easy to do with the RotatePoint() function by stylock.

To get all that data is a lot of work then you still need to process it you will need to use c++ most likely if you want all the objects otherwise it shouldn't be overwhelming to do up to 100 objects manually. If you do it manually remember to subtract the objects position from each point (delta translation to 0,0,0 center) I think the ColAndreas plugin (Collision plugin) could be very useful for this but it's not released.

Model Sizes: https://sampforum.blast.hk/showthread.php?tid=407909
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)