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
CoDWW 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
nigh7rid3r [Downl]
Plagegeist [Today]
Puncster [Tutor]
humaaanek [Downl]
techno2sl [Forum]
P3tQu0 [Tutor]
soulja_boy [Downl]
Wayne16 [Forum]
-DoT-Demon [Forum]

9 Members and 19 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Saturday, Nov. 22nd
CoD:WW Video Tutorial is up!
Friday, Nov. 21st
MODSonair Episode 154
Thursday, Nov. 20th
Call Of Duty World At War - Mod Tools
Wednesday, Nov. 19th
Half-Life 1 $0.98
Sunday, Nov. 16th
MODSonair 154 Live
Latest Poll
Single or Multiplayer maps for World at War?
Single-Player 34.62%
Multiplayer 57.69%
WHAT!? The tools are out? 7.69%
Read More...
4 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
Zombie Map - Help please
CoD:WW Level Des.. Posts: (17) Views: (158) by -DoT-Demon
maya
CoD2 General Gam.. Posts: (1) Views: (14) by PwN3R
uh prefabs?
CoD:WW Level Des.. Posts: (23) Views: (249) by techno2sl
No sound
CoD:WW Level Des.. Posts: (9) Views: (145) by Rasta
Art of War Central Half-Life 2 Mods for Dummies
CoDWW Download
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 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: elevator works but...
liltc64
General Member
Since: Feb 12, 2007
Posts: 73
Last: Aug 11, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Friday, Feb. 22, 2008 10:47 pm
hey i finaly got my elevator to work it gose up but dosnt go down i use this script
main() {
level.elevatorDown = true; // elevator starts at bottom: true/false
level.elevatorMoving = false; // elevator is not currently moving
thread elevator_start();
}

elevator_start() {
elevator = getentarray ("elevatorswitch","targetname");
if ( isdefined(elevator) )
for (i = 0; i < elevator.size; i++)
elevator thread elevator_think();
}

elevator_think() {
while (1) {
self waittill ("trigger");
if (!level.elevatorMoving)
thread elevator_move();
}
}

elevator_move() {
elevatormodel = getent ("elevatormodel", "targetname");
level.elevatorMoving = true;
speed = 2;
height = 588;
wait (1);
if (level.elevatorDown) { // moves to top
elevatormodel playsound ("elevator1"); // sound definition for soundaliases.csv
wait (1); // wait a second to hear the motor start and then start the movement of the lift - feels more realistic
elevatormodel moveZ (height, speed);
elevatormodel waittill ("movedone");
level.elevatorDown = false;
}
else { // moves to bottom
elevatormodel playsound ("elevator1"); // sound definition for soundaliases.csv
wait (1); // wait a second to hear the motor start and then start the movement of the lift - feels more realistic
elevatormodel moveZ (height - (height * 2), speed);
elevatormodel waittill ("movedone");
level.elevatorDown = true;
}
level.elevatorMoving = false;
}

any ideas how to make it go down when i get up there???
liltc64
General Member
Since: Feb 12, 2007
Posts: 73
Last: Aug 11, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Feb. 23, 2008 10:21 am
anyone???[read]
Garthogg
General Member
Since: Jan 29, 2008
Posts: 16
Last: Jun 12, 2008
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Wednesday, Apr. 16, 2008 02:27 am
Hmm...,

Its to dificulti, try to use simple "moves", and type simple "waits" to it going to "realistic"

And u could to find a turtoial for this:P
[jumping][sniper]
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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
Call of Duty Headquarters
Battle for Europe COD2
XoXide
modbase.be
Frag Universe
The Firing Box
CODAddicts - Call of Duty News & Downloads
Ask About
Advertising
Friends
Volcano
After Life Gaming
ModTheater
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 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
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