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
Currently: if you apply a 3/3 sticker to a 1/2 creature, you'll get a 4/5 creature
The pastebin script takes care of that tho ^.^
the api doesn't do much to explain it too well but it's something:
https://api.tabletopsimulator.com/object/#positiontoworld
quick example that should explain how they work better:
worldPos = cardObj.getPosition()
locPos = cardObj.positionToLocal(worldPos) -- should be [0,0,0]
locPos.z = locPos.z + 2 -- should be [0,0,2]
newWorldPos = cardObj.positionToWorld(locPos)
here, you should be able to just do something fast like:
newWorldPos = cardObj.positionToWorld(vector(0,0,2))
oooh, also get the rotation to match up as well if that isn't already the case
can you give me more information on the poisionlocal and position global variables so i can use them to have the sticker spawn relative
here's a script snippet from that - should help!
https://pastebin.com/CDFfTJDc