Black Hawk Down Team Sabre Mapping and Mod Site
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Announcements
Welcome to our Forums.
You must be a member to post in Forum.
So take a minute and register to get full access to forum.
Help keep BHD Alive.
Thank's for visiting our Forum's.
Log in

I forgot my password

Who is online?
In total there are 4 users online :: 0 Registered, 0 Hidden and 4 Guests :: 2 Bots

None

Most users ever online was 144 on Tue May 14, 2019 5:05 pm
BHD/BHDTS Servers
"
Local Time

Vote for us

Wac File

View previous topic View next topic Go down

LoneWolf
LoneWolf
Administrator
Administrator
Posts : 514
Join date : 2012-07-19
Location : Kentucky.USA
https://lonewolfs.forumotion.net/

PostLoneWolf Wed Mar 18, 2015 7:15 pm

This is the right way for this wac file right?

if ssnarea(1) and never() then
ssnwave(the wav you want to use.wav.)
endif

Question


Wac File Lonewo11
Baldo_the_Don
Baldo_the_Don
Administrator
Administrator
Posts : 121
Join date : 2012-07-27
Location : Germany
https://www.youtube.com/BaldotheDon

PostBaldo_the_Don Thu Mar 19, 2015 7:24 am

Are you trying to make an AI speak?
LoneWolf
LoneWolf
Administrator
Administrator
Posts : 514
Join date : 2012-07-19
Location : Kentucky.USA
https://lonewolfs.forumotion.net/

PostLoneWolf Thu Mar 19, 2015 9:42 am

No just give a command like don't shoot civi's,but making ai talk would be handy to lol.I usually don't have a problem with wac files but am now.


Wac File Lonewo11
tedsmelly
tedsmelly
Moderator
Moderator
Posts : 94
Join date : 2012-12-02
Location : Qld Australia
http://www.tiocoop.com

Posttedsmelly Thu Mar 19, 2015 11:27 am

That script would work but it might get cut off by another sound. There will be other sounds that want to play at the same time you wish to have your dialogue.

I am no Singleplayer Mapper, however I would write the event this way and use the "waveready" command. I would also give your wave a distance to be heard.

if ssnarea(9) and waveready() and never() then
wave("teds_a_legend.wav", 200)
endif

or

if ssnarea(10000,9) and waveready() and never() then
wave("I_like_boobies.wav", 200)
endif


Wac File Map_team_sig_2
Blaze
Blaze
Member
Member
Posts : 362
Join date : 2015-01-08
Age : 29
Location : Directus, Republic of Ustio

PostBlaze Thu Mar 19, 2015 1:38 pm

tedsmelly wrote:if ssnarea(9) and waveready() and never() then
wave("teds_a_legend.wav", 200)
endif

or

if ssnarea(10000,9) and waveready() and never() then
wave("I_like_boobies.wav", 200)
endif


LOL!  Anyway Ted is right, although the script is "ssnwave" if you want that the wav is played from the mouth of the specified SSN and so the wav is affected by distance, or "ssnradio" if you want to hear the wav regardless of the distance from the SSN
LoneWolf
LoneWolf
Administrator
Administrator
Posts : 514
Join date : 2012-07-19
Location : Kentucky.USA
https://lonewolfs.forumotion.net/

PostLoneWolf Thu Mar 19, 2015 3:15 pm

I figured it out,I got it thanks guy's for the info, gonna have a map ready soon for you guy's.Hopefully about done just doing a little tweaking to it.


Wac File Lonewo11
Drunk
Drunk
Member
Member
Posts : 28
Join date : 2015-09-16
Location : Bathurst, New-Brunswick Canada

PostDrunk Thu Sep 17, 2015 10:25 pm

if ssnarea(10000,9) and waveready() and never() then
wave("I_like_boobies.wav", 200)
endif

I presume the 10000 is the single player ?
Blaze
Blaze
Member
Member
Posts : 362
Join date : 2015-01-08
Age : 29
Location : Directus, Republic of Ustio

PostBlaze Fri Sep 18, 2015 2:33 am

Exactly, the 10000 is always the player, it means your character, the one you are playing, speaks.  Any other SSN is depending on the mission, your AI friendlies have a different SSN in each mission (it depends on how you created the map), and they can play wav files from their mouths, literally.
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum