Difference between revisions of "Map Modding Features"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Audio Setup)
 
Line 4: Line 4:
 
# Create a new empty game object in the area you want to setup an audio zone.
 
# Create a new empty game object in the area you want to setup an audio zone.
 
# Attach an audiozone script component to the game object.
 
# Attach an audiozone script component to the game object.
# Set the radius of the audiozone
+
# Set the radius of the audiozone.
# Set the music and ambiance entries of the audio zone. Refer to the AudioReference.txt file that ships with the server distribution to find the available music and ambiance names.
+
# Set the music and ambiance entries of the audiozone. Refer to the AudioReference.txt file that ships with the server distribution to find the available music and ambiance names. (You can use the lua server function PlayMusic to easily hear all of the available music and ambiance tracks.)

Latest revision as of 05:31, 14 September 2018

Audio Setup

Music and ambiance is currently supported for custom maps with the caveat of only music and ambiance that is part of the base game can be used at the moment. Setting up music/ambiance zones within this limitation is quite simple.

  1. Create a new empty game object in the area you want to setup an audio zone.
  2. Attach an audiozone script component to the game object.
  3. Set the radius of the audiozone.
  4. Set the music and ambiance entries of the audiozone. Refer to the AudioReference.txt file that ships with the server distribution to find the available music and ambiance names. (You can use the lua server function PlayMusic to easily hear all of the available music and ambiance tracks.)