FAQFAQ    Board RulesBoard Rules    SearchSearch    LotteryLottery    RouletteRoulette    UsergroupsUsergroups
     RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Shop    Log inLog in 
View posts since last visit View your posts View unanswered posts

Mafia 1 - Problem with turn off urban sounds

 
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Ask a Modder - Modding
View previous topic :: View next topic  
Author Message
Hans_Poskocil_

New Member
New Member


Joined: 01 Aug 2016
Posts: 6

24 Bank Notes
Items

PostPosted: Wed Dec 27, 2017 7:41 pm    Post subject: Mafia 1 - Problem with turn off urban sounds Reply with quote

Hello everyone,
I have a problem making a script to turn off urban sounds when I entering the building... The city have 44 urban sound and I need to turn off all the sounds

for example:
dim_act 46
....
findactor 0,"ef_hob1"
findactor 1,"ef_z3"
findactor 2,"horn5"
findactor 3,"zvon1"
....
act_setstate 0, inactive
act_setstate 1, inactive
act_setstate 2, inactive
act_setstate 3, inactive
...

but the script does not work and the sounds are still heard... Crying
Back to top
View user's profile Send private message
AsaSK

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 24 Feb 2013
Posts: 634
Location: London, England
9864 Bank Notes
Items

PostPosted: Thu Dec 28, 2017 12:21 am    Post subject: Mafia 1 - Problem with turn off urban sounds Reply with quote

I seem to remember that act_setstate doesn't work for sound objects. Try frm_seton xx, 0.
_________________

The official Mafioso Mod thread
Back to top
View user's profile Send private message
Hans_Poskocil_

New Member
New Member


Joined: 01 Aug 2016
Posts: 6

24 Bank Notes
Items

PostPosted: Fri Dec 29, 2017 5:36 am    Post subject: Re: Mafia 1 - Problem with turn off urban sounds Reply with quote

Thank you for your help. I disconnected the script for accidentally turning on the sounds XD
There are all sound in city:
ambi_ark1
ambi_ark2
ambi_central
ambi_central1
ambi_central2
ambi_downtown
ambi_downtown1
ambi_hoboken
ambi_china
ambi_china2
ambi_china3
ambi_oakhill
ambi_tunel2
ambi_zapad1
ambi_zapad2
dite1
dite2
ef_ark1
ef_ark1.2
ef_ark2
ef_ark3
ef_centr1
ef_down1
ef_down2
ef_down3
ef_hob1
ef_hob1.2
ef_hob2
ef_hob3
ef_hob4
ef_hob5
ef_z1
ef_z2
ef_z2.1
ef_z3
ef_z4
ef_z4.1
ef_z5
horn1
horn2
horn3
horn4
horn5
horn6
lidi1
lod_sirena
more1
more3
nadr1
nadr2
nadr3
nadr4
nadr5
nadr6
pes1
pes2
pes3
pes4
pes5
pes6
pes7
plaz1
police1
police2
police3
police4
police5
police6
police7
police8
primary_ambitown
pristav
pristav2
ptaci_hill1
ptaci_hill2
ptaci1
ptaci2
ptaci3
ptaci4
ptaci5
ptaci6
ptaci7
ptaci8
ptaci9
ptaci10
ptaci11
ptaci12
ptaci13
ptaci14
ptaci15
ptaci16
ptaci17
ptaci18
ptaci19
ptaci20
ptaci21
ptaci22
ptaci23
ptaci24
racci1
racci2
racci3
racci4
racci5
racci6
racci7
racci8
reka1
reka2
reka3
reka4
reka5
reka6
reka7
reka8
reka9
reka10
reka11
reka12
reka13
reka14
reka15
reka16
reka17
reka18
reka19
reka20
reka21
skaliska1
skaliska2
skaliska3
skaliska4
skaliska5
skaliska6
sklad1
sklad2
sklad3
sklad4
stavba1.1
stavba1.2
stavba2
stavba3
stavba3.1
stavba3.2
tovarna1
tovarna2
tovarna3
tovarna4
tovarna5
tovarna6
tovarna7
tovarna8
tovarna9
tovarna10
utes1
vlny1
vlny2
vlny3
vychodef1
vychodef1.1
vychodef2
vychodef3
wav1
wav2
wav3
wav4
wav5
wav6
wav7
wav8
wav9
wav10
wav11
wav12
zapadef1
zapadef1.1
zapadef2
zapadef3
zapadef3.1
zapadef4
zapadef4.1
zvon1
zvon2
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Ask a Modder - Modding All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Generation Time: 0.021 | Queries: 19