Scripts / 2 Utility Scripts

Author
Message
GoDevils
9
Years of Service
User Offline
Joined: 24th Sep 2014
Location: Arizona USA
Posted: 30th Mar 2015 23:04
For those getting started with GG and LUA, you will at times need to know the X Y Z coordinates of a specific entity, and the X Y Z coordinates of the player/camera.

The following simple scripts can be used to gather this information.

The first script (aaentityxyzprompt.lua) displays a prompt with the X Y Z values of a specific entity.



Temporarily attached this script to the entity (make sure the entity static is set to NO, and set Always Use to YES)
Run your test mode and the prompt will provide the X Y Z location of the entity.



The second script displays the X Y Z coordinates of the player/camera



As above, temporarily attached this script to the entity (make sure the entity static is set to NO, and set Always Use to YES)
Run your test mode and the prompt will provide a running update of the X Y Z coordinates of the player/camera.

These have come in handy for me, hope you find them useful

Go Devils
"THERE IS NO SPOON"

AMD 6300 6 core 3.5 ghz, Windows 8.1, 8GB ram, GTX 650 2GB ram
Devcore35
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 5th Aug 2014
Location: Rouen (76) - France
Posted: 31st Mar 2015 11:26
Thank you for sharing this useful
This can be used to create a potential backup system.
PM

Login to post a reply

Server time is: 2024-05-06 07:52:17
Your offset time is: 2024-05-06 07:52:17