MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
Kingprawny [Tutor]

1 Members and 13 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Wednesday, Nov. 19th
Half-Life 1 $0.98
Sunday, Nov. 16th
MODSonair 154 Live
Friday, Nov. 14th
MODSonair Episode 153
Tuesday, Nov. 11th
Mirror's Edge - Review
Sunday, Nov. 9th
MODSonair 153 Live
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 8.76%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0.52%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 68.04%
100% definitely NOT! 18.56%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 2.58%
Games are the devil! 1.55%
Read More...
16 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
PROBLEMS WITH THE EDITOR *READ THIS*
CoD 2 Level Desi.. Posts: (124) Views: (5851) by Kewlt
script compile error
CoD 4 Scripting.. Posts: (1) Views: (13) by ThisGuy
CoD5 Mapping Tools
CoD:WW Level Des.. Posts: (45) Views: (696) by StrYdeR
COD Waw ModTools out soon!
CoD:WW Level Des.. Posts: (2) Views: (56) by Sparks.
Google 468 Banner Quake 4 Mods for Dummies
Forums
MODSonline.com 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 4
Category: CoD 4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, batistablr, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Open more that 1 door at a time
xcp_naruto005
General Member
Since: Jul 7, 2008
Posts: 37
Last: Nov 1, 2008
[view latest posts]
Level 2
Category: CoD 4 Scripting
Posted: Sunday, Sep. 7, 2008 03:18 pm
Hi guys I want a trigger to open 4 doors at once can any one help me with the script on this? thanks
xcp_naruto005
General Member
Since: Jul 7, 2008
Posts: 37
Last: Nov 1, 2008
[view latest posts]
Level 2
Category: CoD 4 Scripting
Posted: Monday, Sep. 8, 2008 06:39 am
Ok I have a rough idea on how the script go’s this is the script i have to open 2 doors but the problem is that they open fine but when you want them to close they do not move can someone point out what I have not done right.

O! Sorry about the title of the post when I realised what I did it was too late to change it lol



Code:
The_Caretaker
Preferred Member
Since: Jun 8, 2004
Posts: 11559
Last: Oct 4, 2008
[view latest posts]
Level 10
Forum Moderator
Category: CoD 4 Scripting
Posted: Monday, Sep. 8, 2008 03:51 pm
Why not do this alot easier?


moving()
{
trigger waittil("trigger")
door1 movex (50,1);
door2 movex(-50,1);
door2 waittil ("movedone");
trigger waittil("trigger")
door1 movex (-50,1);
door2 movex(50,1);
door2 waittil ("movedone");
}

something like that will work just as wel.

As for your script, no idea.. it looks like it should work for asfar as I can follow.
Maybe put in some iprintln functions to see what the value of some variable are? Like the self.doorclosed value? Put it in the beginning of your door_move() function to see what happens when you push the trigger the second time. You'll get the value for doorclosed, and if nothing shows, it means the function is not being called a second time (which is my guess, to be honest).

xcp_naruto005
General Member
Since: Jul 7, 2008
Posts: 37
Last: Nov 1, 2008
[view latest posts]
Level 2
Category: CoD 4 Scripting
Posted: Monday, Sep. 8, 2008 06:24 pm
The_Caretaker writes...
Quote:
Why not do this alot easier?


moving()
{
trigger waittil("trigger")
door1 movex (50,1);
door2 movex(-50,1);
door2 waittil ("movedone");
trigger waittil("trigger")
door1 movex (-50,1);
door2 movex(50,1);
door2 waittil ("movedone");
}

something like that will work just as wel.

As for your script, no idea.. it looks like it should work for asfar as I can follow.
Maybe put in some iprintln functions to see what the value of some variable are? Like the self.doorclosed value? Put it in the beginning of your door_move() function to see what happens when you push the trigger the second time. You'll get the value for doorclosed, and if nothing shows, it means the function is not being called a second time (which is my guess, to be honest).



ok thank's for the help
xcp_naruto005
General Member
Since: Jul 7, 2008
Posts: 37
Last: Nov 1, 2008
[view latest posts]
Level 2
Category: CoD 4 Scripting
Posted: Wednesday, Sep. 10, 2008 05:09 pm
The_Caretaker writes...
Quote:
Why not do this alot easier?


moving()
{
trigger waittil("trigger")
door1 movex (50,1);
door2 movex(-50,1);
door2 waittil ("movedone");
trigger waittil("trigger")
door1 movex (-50,1);
door2 movex(50,1);
door2 waittil ("movedone");
}

something like that will work just as wel.

As for your script, no idea.. it looks like it should work for asfar as I can follow.
Maybe put in some iprintln functions to see what the value of some variable are? Like the self.doorclosed value? Put it in the beginning of your door_move() function to see what happens when you push the trigger the second time. You'll get the value for doorclosed, and if nothing shows, it means the function is not being called a second time (which is my guess, to be honest).


it is not working help[banghead] i get a sentax error
The_Caretaker
Preferred Member
Since: Jun 8, 2004
Posts: 11559
Last: Oct 4, 2008
[view latest posts]
Level 10
Forum Moderator
Category: CoD 4 Scripting
Posted: Friday, Sep. 12, 2008 02:45 pm
"A syntax error" is not very precise...

Type out exactly what it says here... pull down your console, it will give more info about the error.
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Scripting
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Intergi
Partners
XoXide
Call of Duty Headquarters
The Firing Box
CODAddicts - Call of Duty News & Downloads
modbase.be
Frag Universe
Battle for Europe COD2
Ask About
Advertising
Friends
MODS Reloaded
The Clan Database
Volcano
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
MODSonair Episode 150
Next Show
The next MODSonair show will air LIVE on:
11/23/2008 12:00 EST

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware