Page 1 of 1
Tip: How to show a beacon in v3.1 0 - silence.ogg
Posted: 20 May 2012, 02:32
by aubergine
The Warzone 3.1 JS API doesn't have any way to show a beacon without playing a sound effect. Luckily, there's a "silence.ogg" audio file which as it's name suggests is silent.
Thus, you can show beacons in 3.1 as follows:
Where x,y,z are the coordinates for the beacon to appear. (:
silence.ogg can also be used to create a short pause between queued audio messages.
Re: Tip: How to show a beacon in v3.1 0 - silence.ogg
Posted: 20 May 2012, 03:10
by Giani
aubergine wrote:
(:
*Off topic* You stole NoQ 's smile!
Re: Tip: How to show a beacon in v3.1 0 - silence.ogg
Posted: 20 May 2012, 05:45
by NoQ
I also stole it from some guy // who didn't spam it tastelessly like i do, btw (:
P.S. Nice catch, it's sort of useful for debugging! To see things visually.
P.P.S. If only there was a way to receive a beacon ...
P.P.P.S. At least this can be used to communicate with humans ...
Re: Tip: How to show a beacon in v3.1 0 - silence.ogg
Posted: 20 May 2012, 06:16
by aubergine
Yup, I did rob NoQ's smiley (:
And yes, this is useful for allowing an AI to do some basic level communication with human player. I guess we'll have to wait for 3.2 before we can do proper comms using chat, beacon receiving, etc.
Re: Tip: How to show a beacon in v3.1 0 - silence.ogg
Posted: 20 May 2012, 11:44
by Cyp
/me did not rob NoQ's smiley. (:
Re: Tip: How to show a beacon in v3.1 0 - silence.ogg
Posted: 20 May 2012, 11:50
by Berg
what (:
Re: Tip: How to show a beacon in v3.1 0 - silence.ogg
Posted: 21 May 2012, 07:12
by aubergine
Just realised that creating a beacon with playSound() means that the beacon is only shown to the human player on the client machine, it won't appear for allies or enemies - it's a private beacon, which will be useful in several situations
