If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here
Moderator: Moderators
-
mcunha98
- Lieutenant Colonel
- Posts: 384
- Joined: Sat Jan 17, 2004 1:52 am
- Location: Brasil
-
Contact:
Post
by mcunha98 »
In multiplayer maps when i can play a sound i put a script -> object and give to it the targetname.
But, in singleplayer this technique dont work
How i do ?
Code: Select all
InitSounds:
local.master = spawn ScriptMaster
local.master aliascache radio_snd sound/mechanics/Mec_RadioLoop_04.wav soundparms 0.5 0.0 1.0 0.0 256 256 auto loaded maps "dm moh obj train"
local.master aliascache phone_snd sound/mechanics/Mec_PhoneRing_01.wav soundparms 0.5 0.0 1.0 0.0 256 256 auto loaded maps "dm moh obj train"
end
Code: Select all
PlaySounds:
wait 1
$radio_sound1 loopsound radio_snd
$phone_sound1 loopsound phone_snd
end
-
tltrude
- Chuck Norris
- Posts: 4774
- Joined: Sun Jul 07, 2002 4:03 am
- Location: Oklahoma, USA
-
Contact:
Post
by tltrude »
maps "dm moh obj train"
You need to put your map's name in the list.
local.master aliascache radio_snd sound/mechanics/Mec_RadioLoop_04.wav soundparms 0.5 0.0 1.0 0.0 256 256 auto loaded maps "dm moh obj train my_map"
Tom Trude,

-
jv_map
- Site Admin
- Posts: 6521
- Joined: Tue Sep 03, 2002 2:53 pm
- Location: The Netherlands
-
Contact:
Post
by jv_map »
Or just
maps getcvar(mapname)
(will work in sp and mp, and also if you rename the map)
-
mcunha98
- Lieutenant Colonel
- Posts: 384
- Joined: Sat Jan 17, 2004 1:52 am
- Location: Brasil
-
Contact:
Post
by mcunha98 »
Works fine, thanks !