Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I have in mind that things will change.
Thanks thats a start for me!
http://pastebin.com/0iwFchez
in order to use this you will need to complete 3 steps.
1. create a scripting zone with the zone tool, cover the entire board with it.
2. any object you want to find the position of, name the object (case sensitive) PositionFinder
3. get the guid of the scripting zone and replace the one at the top of the file with the new one you just copied.
When you take a seat, a button should spawn, when you click the button, it will print the coords of your object to the chat window.
You can freely move your object around the table and press the button to print the new coords again.
enjoy.
Gather the GUID from a game object inside TTS. (RMB on item, scripting > GUID > click to copy)
-- example script
your_copied_guid_from_TTS = '4d54fd'
game_object = getGameObjectFromGUID(your_copied_guid_from_TTS)
object_position = getPositionForGameObject(game_object)
x_pos, y_pos, z_pos = object_position.x, object_position.y, object_position.z
-- example script end
This what happened when I did what FragaholiC posted
(I am a beginner just trying to figure out what it all means
I started a new TTS game, spawned a SquareBlock, and put
Gather the GUID from a game object inside TTS. (RMB on item, scripting > GUID > click to copy)
-- example script
your_copied_guid_from_TTS = '4d54fd'
game_object = getGameObjectFromGUID(your_copied_guid_from_TTS)
object_position = getPositionForGameObject(game_object)
x_pos, y_pos, z_pos = object_position.x, object_position.y, object_position.z
-- example script end
Which looked like this with my Guid from the SquareBlock
24b938 = '4d54fd'
game_object = getGameObjectFromGUID(24b938)
object_position = getPositionForGameObject(game_object)
x_pos, y_pos, z_pos = object_position.x, object_position.y, object_position.z
and got
Error in Global Script: unexpected symbol near '24'
the guid is a string and strings must be wrapped in quotes -> '
game_object = getGameObjectFromGUID('24b938')
also note, variables cannot start with numbers in lua the first character must be a letter.
P.S.
it appears you replaced the variable with your new guid, rather then a reference to the variable that stores the guid string for you called your_copied_guid_from_TTS
just update the variable at the top of the script to your new guid
your_copied_guid_from_TTS = '4d54fd' <- frags guid
your_copied_guid_from_TTS = '24b938' <- your guid
then you would keep the line the way it was originally.
game_object = getGameObjectFromGUID(your_copied_guid_from_TTS)
guid = '4d54fd'