Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 9 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Scripted door with sound
Azz
General Member
Since: Jul 29, 2004
Posts: 901
Last: Aug 13, 2010
[view latest posts]
Level 7
Category: CoDUO Mapping
Posted: Monday, May. 23, 2005 07:33 pm
Hi guys, LOL, i would be able to do this but i don't know a thing about sound in CODUO, basically what i'm after is a script to make a door open but with sound aswell, like when you press f the door opens and plays a door unlocking/opening sound.
I'm sure this is possible but dont know how to even start.

Thanks for any help
Azz
Share |
lauramaegan
General Member
Since: Aug 9, 2004
Posts: 630
Last: Feb 11, 2007
[view latest posts]
Level 6
Category: CoDUO Mapping
Posted: Monday, May. 23, 2005 08:41 pm
Look at the tutorial for adding sounds in uo. It explains it way better than I could. I could build you a test map if you still have problems. It's easy once you get the hang of it.
Share |
Azz
General Member
Since: Jul 29, 2004
Posts: 901
Last: Aug 13, 2010
[view latest posts]
Level 7
Category: CoDUO Mapping
Posted: Tuesday, May. 24, 2005 02:42 pm
Thanks but thats not quite what i mean.... does anybody have a script where using the same trigger you can open a door and start a sound and then after say a 5 scond wait the door closes with a dooor closing sound.

Thanks Again

Azz
Share |
lauramaegan
General Member
Since: Aug 9, 2004
Posts: 630
Last: Feb 11, 2007
[view latest posts]
Level 6
Category: CoDUO Mapping
Posted: Tuesday, May. 24, 2005 04:05 pm
Like so?

tunnel_door()
{
tud = getent ("tunneldoor","targetname");
tudtrig = getent ("tunneldoortrigger","targetname");
tudos = getent ("tunneldooropen","targetname");
tudcs = getent ("tunneldoorclose","targetname");

tudtrig waittill ("trigger",other);

tudos playsound("dooropen");

tud rotateto ((0,90,0),1);


//wait 5 seconds before reseting
wait 5;

tudcs playsound("doorclose");

//return to zero
tud rotateto ((0,0,0),1);

//reset trigger
thread tunnel_door();
}
Share |
Azz
General Member
Since: Jul 29, 2004
Posts: 901
Last: Aug 13, 2010
[view latest posts]
Level 7
Category: CoDUO Mapping
Posted: Tuesday, May. 24, 2005 04:12 pm
Wehay, thts it thnx.. except... what are the objects? for example i know tht
tud = getent ("tunneldoor","targetname");
is the dioor and
tudtrig = getent ("tunneldoortrigger","targetname");
is the trigger but what are the other 2?


Thanks alot for all the help
Azz
Share |
lauramaegan
General Member
Since: Aug 9, 2004
Posts: 630
Last: Feb 11, 2007
[view latest posts]
Level 6
Category: CoDUO Mapping
Posted: Tuesday, May. 24, 2005 04:18 pm
script models that are laeft as the red box. I call the open sound from one and the close sound from the other.
Share |
Azz
General Member
Since: Jul 29, 2004
Posts: 901
Last: Aug 13, 2010
[view latest posts]
Level 7
Category: CoDUO Mapping
Posted: Tuesday, May. 24, 2005 04:20 pm
ok thanks!

erm, i'm very sorry if i'm being a pest but do you nesd anything else like a csv or anything, and if so wht would i put in it....?

Again, very , very sorry
I'm just so dumb and n00by!

Thanks A Bunch
Azz
Share |
lauramaegan
General Member
Since: Aug 9, 2004
Posts: 630
Last: Feb 11, 2007
[view latest posts]
Level 6
Category: CoDUO Mapping
Posted: Tuesday, May. 24, 2005 04:22 pm
yes you need a csv but don't have it here will post it when I get home later. About 4-5 hrs.
Share |
Azz
General Member
Since: Jul 29, 2004
Posts: 901
Last: Aug 13, 2010
[view latest posts]
Level 7
Category: CoDUO Mapping
Posted: Tuesday, May. 24, 2005 04:23 pm
ok thnx
Share |
Olle_se
General Member
Since: Nov 4, 2004
Posts: 62
Last: Sep 20, 2005
[view latest posts]
Level 3
Category: CoDUO Mapping
Posted: Tuesday, May. 24, 2005 05:36 pm
but you can use only one script_model for the sound to play... [wave]
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»