ScriptAreaSound

From Amulets & Armor Wiki
Revision as of 00:08, 2 November 2015 by PeeWeeRotA (Talk | contribs)

Jump to: navigation, search

AreaSound( [SoundNum], [x], [y], [Radius], [volume])

Plays a sound at the specified location to anyone within the radius.

Arguments

SoundNum - The object id of the sound to be played. Can be found in the PICS.RES file.

X - X location on map. Found in status bar when using 2d view in Doom Builder 2.

Y - Y location on map. Found in status bar when using 2d view in Doom Builder 2.

Radius - Maximum distance from sound object to be audible. (Max: 32767)

Volume - Volume at closest point to sound being played. The in-game volume lowers based on distance. (Max 255)

Example

40:  // open exit door with switch
   ChangeSideTexture(1636,"SWIT1U");
   AreaSound(6007,-16,516,300,255);
   SlideCeilingNice(129, 0, 120, 50, -1);
   End();

Sound List

1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1500 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3018 3019 3020 3021 3022 3023 3024 3025 3500 3501 3502 3503 3504 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 5000 5001 5002 5003 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 7000 7001 7002 7003 7004 7005 7006 7007 7008 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 8000 8001 8002 8003 8004 8005 8010 8011 8012 8013 8014 8015 8020 8021 8022 8023 8024 8025 8030 8031 8032 8033 8034 8035 8040 8041 8042 8044 8045 8046 8050 8051 8052 8053 8054 8055 8056 8060 8061 8062 8063 8064 8070 8071 8072 8074 8075 8082 8084 8090 8091 8092 8093 8094 8095 8096 8100 8101 8102 8103 8104 8105 8110 8111 8112 8113 8114 8115 8116 8120 8121 8122 8123 8124 8125 8130 8131 8132 8133 8134 8135 8140 8141 8142 8143 8144 8145 8146 8150 8151 8152 8153 8154 8155 8160 8161 8162 8163 8164 8165 8170 8172 8173 8174 8176 8180 8181 8182 8183 8184 8185 8186 8190 8191 8192 8193 8194 8195 8202 8203 8204 8205 8210 8211 8212 8213 8214 8215 8216 8220 8221 8222 8223 8224 8225 8230 8231 8232 8234 8235 8240 8241 8245 8250 8251 8252 8253 8254 8255 8260 8262 8263 8264 8265 8270 8271 8272 8273 8274 8275 8280 8281 8282 8283 8284 8285 8290 8291 8292 8293 8294 8295 8296 9000 9001 9002 9010 9011 9012 9013 9014 9015 9016 9017 9020 9021 9022 9030 9031 9033 9034 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113
# Num