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
the code doesn't allow for the coordinates to clear when you delete the object.
The following code should fix that
function update()
local pos = self.getPosition()
local heightOffset = self.getDescription()
local x = math.floor(pos.x*100+0.5) / 100
local y = (math.floor(pos.y*100+0.5) / 100)
local z = math.floor(pos.z*100+0.5) / 100
if heightOffset ~= "" then
y = y + tonumber(heightOffset)
end
setNotes("{"..x..", "..y..", "..z.."}")
end
function onDestroy()
setNotes("") -- Clear the notes when the object is deleted
end
Kind Regards
IN THE MIDDLE OF THE TEXT FIELD YOU WANT TO MAKE.
(Just figured I'd all-caps that so others won't make the same mistake I did)