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

Members Online

»
0 Active | 74 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Again! elevator help
luke0777
General Member
Since: Aug 14, 2007
Posts: 41
Last: Apr 24, 2009
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Monday, Dec. 15, 2008 11:18 pm
ok i know that tutorial CoD moving things tutorial also works for cod2 but i dont get that at all so please stop giving me that answer for everything. i just want to know how to make it so the elevator comes back by it self after a surtain amount of time. so please just tell me what i have to add to my .gsc

(heres my .gsc file)

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 = 300;
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;
}
Share |
ROTCGuy
General Member
Since: May 30, 2004
Posts: 265
Last: Mar 18, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Monday, Dec. 15, 2008 11:57 pm
check out this link http://www.modsonline.com/Forums-top-93173.html
Share |
ChusGMh
General Member
Since: Oct 7, 2008
Posts: 65
Last: Oct 4, 2010
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Monday, Jan. 5, 2009 11:19 am
Just make your own elevator in 2 d view make script brush model

and click on N put Targetname/Elevator and make your own trigger if u do trigger_use_touch click on entity and Targetname/Trigger_elevator

i give here a short script
main()
{
thread elevator3();
}

elevator3()
{
elevator=getent("elevator","targetname");
trig=getent("trig_elevator","targetname");
while(1)
{
trig waittill ("trigger");
elevator movez (630,7,1.9,1.9);
elevator waittill ("movedone");
wait(5);
elevator movez (-630,7,1.9,5);
elevator waittill ("movedone");
}
}




[wave]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP 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

»