Log in

I forgot my password

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

None

[ View the whole list ]


Most users ever online was 19 on Fri Jan 20, 2017 10:08 pm

Wac File

View previous topic View next topic Go down

Wac File

Post by LoneWolf on 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


avatar
LoneWolf
Super Admin
Super Admin

Posts : 385
Join date : 2012-07-19
Location : Kentucky.USA

View user profile http://lonewolfs.makeforum.net

Back to top Go down

Re: Wac File

Post by Baldo_the_Don on Thu Mar 19, 2015 7:24 am

Are you trying to make an AI speak?


The NSO Deadline Mod at NovaHQ.net

Baldo's Mod Pack - Click here, find out more!

Right-click this link and choose "Save Target" to download the 13.9MB Baldos_Mod_Pack.zip from C.PPN02!

Also available from DFReload: Click here!


avatar
Baldo_the_Don
Administrator
Administrator

Posts : 65
Join date : 2012-07-27
Location : Germany

View user profile http://www.youtube.com/BaldotheDon

Back to top Go down

Re: Wac File

Post by LoneWolf on 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.


avatar
LoneWolf
Super Admin
Super Admin

Posts : 385
Join date : 2012-07-19
Location : Kentucky.USA

View user profile http://lonewolfs.makeforum.net

Back to top Go down

Re: Wac File

Post by tedsmelly on 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


avatar
tedsmelly
Super Moderator
Super Moderator

Posts : 70
Join date : 2012-12-02
Location : Qld Australia

View user profile http://www.tiocoop.com

Back to top Go down

Re: Wac File

Post by Blaze on 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
avatar
Blaze
Super Moderator
Super Moderator

Posts : 367
Join date : 2015-01-08
Age : 22
Location : Directus, Republic of Ustio

View user profile

Back to top Go down

Re: Wac File

Post by LoneWolf on 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.


avatar
LoneWolf
Super Admin
Super Admin

Posts : 385
Join date : 2012-07-19
Location : Kentucky.USA

View user profile http://lonewolfs.makeforum.net

Back to top Go down

Re: Wac File

Post by Drunk on 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 ?
avatar
Drunk
Member
Member

Posts : 30
Join date : 2015-09-16
Location : Bathurst, New-Brunswick Canada

View user profile

Back to top Go down

Re: Wac File

Post by Blaze on 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.
avatar
Blaze
Super Moderator
Super Moderator

Posts : 367
Join date : 2015-01-08
Age : 22
Location : Directus, Republic of Ustio

View user profile

Back to top Go down

Re: Wac File

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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