StendhalScripting/Lua: Difference between revisions
Content deleted Content added
imported>AntumDeluge See also |
imported>AntumDeluge →Add Zone Music: "setZoneMusic" replaced with "game:setMusic" |
||
Line 278:
=== Add Zone Music ===
Music can be added to zones with the <code>
*
* <span style="color:darkgreen; font-style:italic;>args:</span> A table of key=value integers.
* Valid keys:
* ''x:'' (optional) The horizontal point for the source of the music.▼
** <span style="color:darkblue; font-style:italic;">volume:</span> Volume level (default: 100).
* ''y:'' (optional) The vertical point for the source of the music.▼
▲**
* ''radius:'' (optional) The radial range at which the music can be heard.▼
▲**
▲**
Example:
<pre>
if game:setZone("0_semos_plains_n") then
end
</pre>
| |||