Product Chat / Finally, actual terrain location values.

Author
Message
GoDevils
10
Years of Service
User Offline
Joined: 24th Sep 2014
Location: Arizona USA
Posted: 1st Oct 2020 23:11
For years I've been asking for an editor level display of the actual terrain location values (X,Z) , so important for creating movement scripts. Prayers answered. As part of the GGX entity display there are now the actual location values.

Thanks
"THERE IS NO SPOON"

AMD 6300 6 core 3.5 ghz, Windows 10, 8GB ram, GTX 1060 2GB ram
Mortt
8
Years of Service
User Offline
Joined: 16th May 2016
Location:
Posted: 3rd Nov 2020 07:52
I also am happy with X,Y location in GGMax, but will still need to be scripted to entity; it will make it so much easier to plan the game strategies.
(Custom) Intel i7 3.3 Mhz. 16 GB fast ram. EVGA Nvidia 1050 Ti 4GB. Dell US27 2560 x 1440. Dell 24 1920 x 1080. Awesome.
Next G. Card EVGA GeForce GTX 970 Superclocked ACX 2.0 Gaming 4GB GDDR5 PCIe3.0 Graphics Card.
Would Like EVGA NVIDIA GeForce GTX 1080 8GB GDDR5X PCIe3.0 Graphics Card
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 3rd Nov 2020 10:40
I've created hundreds (if not thousands!) of movement scripts without this 'feature'.

The entity knows where it is why do you need to know?
Been there, done that, got all the T-Shirts!
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 3rd Nov 2020 23:33
"The entity knows where it is why do you need to know?"

For one thing, a person could determine the size of object by knowing
exactly where cursor coordinates are. Handy when scaling object to fit
a certain footprint for example.
I've come across the need for this on occasion, and wanted to find a
ruler entity (I think someone did that), and there's been a few other
uses for it in scripting...

So what I've done in the past is take an object of known dimensions--
'sandy floor' for example includes in name '400x400', then when I
wanted to lay out plots of 2000 segments square, I scale it @ 500, 500.

Luckily the scale is saved after test game.
I can then use that to mark out 2000 segment areas (use a texture line).
Just not all items reveal their sizes. I like to measure out things like the
width of rivers or size of buildings on Google Earth's ruler. I'm weird.

In my weirdness, I cannot fathom the deepness of the world's deepest
river- do you know how deep it is?! Can you fathom that? It's crazy!

https://www.cntraveler.com/stories/2015-09-28/odd-thing-about-the-worlds-deepest-river-congo-africa
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 4th Nov 2020 00:06
There are Lua functions to get the dimensions of an entity.

The easiest way to use them is via the physlib GetObjectDimensions function.

To get the offset from one entity to another I use the attached script.
Simply attach it to two dynamic entities and it will give you the x, y, z offsets from one to the other.
Been there, done that, got all the T-Shirts!

Attachments

Login to view attachments
PM

Login to post a reply

Server time is: 2024-11-23 12:09:39
Your offset time is: 2024-11-23 12:09:39