Page 1 of 1

Dynamic fog & PlayWAV question

PostPosted: 06 Jun 2016, 10:09
by Tuweky
I've started scripting since last weekend and had fun making dynamic fog :)
Not sure if it's something common, as if (many) others already made it before. But it's one of the features which I've personally always missed at KaM. It also clears the fog of your allies and each unit/building has his own specific view range.

Image

(No idea if the weblink to the .gif is loading propely... if not, here is a direct link: http://i.imgur.com/MmNy8tZ.gifv )

About my PlayWAV question, I couldn't figure out how to propely make us of the function. As it states it requires both a file name and a string. What's the string used for?
As example: Actions.PlayWAV(-1, map_name.sound1.wav, 'random text', 1);

Re: Dynamic fog & PlayWAV question

PostPosted: 06 Jun 2016, 10:39
by Krom
About my PlayWAV question, I couldn't figure out how to propely make us of the function. As it states it requires both a file name and a string. What's the string used for?
As example: Actions.PlayWAV(-1, map_name.sound1.wav, 'random text', 1);
This is a mistake in documentation. I will try to fix it tonight.

Re: Dynamic fog & PlayWAV question

PostPosted: 06 Jun 2016, 14:53
by Krom
Documentation fixed - there was a bug in documentation generator which did not handle AnsiString type properly. Now it is correct (affects PlayWAV and some other functions that take text as input arguments)

Re: Dynamic fog & PlayWAV question

PostPosted: 06 Jun 2016, 17:12
by Tuweky
Thank you! Got it working.