Map Database  •  FAQ  •  RSS  •  Login

Dynamic fog & PlayWAV question

<<

Tuweky

User avatar

Serf

Posts: 5

Joined: 19 Jun 2014, 13:56

KaM Skill Level: Average

Post 06 Jun 2016, 10:09

Dynamic fog & PlayWAV question

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);
<<

Krom

User avatar

Knights Province Developer

Posts: 3281

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 06 Jun 2016, 10:39

Re: Dynamic fog & PlayWAV question

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.
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
<<

Krom

User avatar

Knights Province Developer

Posts: 3281

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 06 Jun 2016, 14:53

Re: Dynamic fog & PlayWAV question

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)
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
<<

Tuweky

User avatar

Serf

Posts: 5

Joined: 19 Jun 2014, 13:56

KaM Skill Level: Average

Post 06 Jun 2016, 17:12

Re: Dynamic fog & PlayWAV question

Thank you! Got it working.

Return to “Dynamic Scripting”

Who is online

Users browsing this forum: No registered users and 0 guests