Show
action nameDescription
Code: Select all
"actions":[{"type":"action name",...},...],id, x, y, z, x2, y2, frame, invert, ignore, level,inner
Show
buildBuilds whatever is given as id. If provided, the given frame will be used. For roads z can be used to provide the level to build at (0 or 1). For fences if frame is provided (0..3) it will be interpreted as edge index where to place the fence; if no frame was provided the fence will be built around the context area.
Show
removeRemoves anything from the given position. Convenient to ensure that a building can be built.
Show
remove fenceRemoves the fence at the current location. If frame is provided it will be interpreted as edge index to remove.
Show
remove pipeRemoves the pipe at the given position. If id is provided the pipe will only be removed if it matches that id.
Show
remove road decorationRemoves the road decoration at the given position and level. If id is provided only road decorations with matching id will be removed.
Show
remove road occupationRemoves the road occupation at the given position and level. Reserved for future use.
Show
frameSets the frame of the building at x, y to the specified frame. The frame can also be specified using code.
Show
burnInitiates a fire on the building at x, y. Be aware that not all buildings can burn.
Show
extinguishExtinguishes the fire of the building at x, y.
Show
playPlays the sound from the given id.
Show
notifySee here for more information.
Show
disasterIssues a disaster at the given position. The disaster is specified using the "id" tag. Possible values are:
- "fire"
- "meteor"
- "earthquake"
- "nuke"
- "tornado"
- "nuclear plant"
- "illness"
- "flooding"
- "riot"
- "crime"
- "ufo"
- "generic building"
Show
toastShows an Android toast overlay with id as content.
Show
fireworkEmits the firework specified by id at x, y.
Show
setSets the value of the variable id to the value given in code. See here for more information about variables.
Show
performanceApplies the performance provided in code to of the building at x, y (values 0 - 100).
Show
animation pause Pauses the animation slot "level" (0 by default). Additionally sets the frame to "frame" if specified.
Show
animation resume Resumes the animation slot "level" (0 by default). Additionally sets the frame to "frame" if specified.
Show
rectCan be used to execute actions in a rectangular area.
See here: https://theotown.com/forum/viewtopic.ph ... 25#p118725
See here: https://theotown.com/forum/viewtopic.ph ... 25#p118725
Show
callCan be used to call a Lua function.
See here: viewtopic.php?f=81&t=10561
See here: viewtopic.php?f=81&t=10561