MODSonline Subscriptions
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
The next MODSonair show will air LIVE on:
03/21/2010 12:03 EDT

Time remaining:
We Dontated to PixelEquity
"Mods can significantly outshine and/or continue the success of the original game even when it is dated." 1
 
Site News   |   Aggregated News   |   Forums   |   Tutorials   |   Downloads   |   Projects   |   Weblinks
Latest Forum Threads 
CoD4 SP Mapping.. Posts: (10) Views: (129) by voidsource
CoD4 Scripting.. Posts: (2) Views: (17) by Samuel033
CoD4 SP Mapping.. Posts: (4) Views: (21) by techno2sl
General Gaming.. Posts: (7) Views: (142) by Rasta
CoD4 MP Mapping.. Posts: (4) Views: (68) by Infern4ll
CoD4 Scripting.. Posts: (9) Views: (255) by DemonSeed
CoD2 MP Mapping.. Posts: (12) Views: (97) by StrYdeR
CoDUO Mapping.. Posts: (5) Views: (74) by sternkaa
MODSon-air.. Posts: (1) Views: (23) by foyleman
Back to Home Page
MODSCON 2010 L4D2 Contest
Art of War Central
Register/Login to Add a Tutorial
Tutorials
CoD2 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
How to make a easy Elevator
Versions: You must be logged in to view history.
Here i show how to make a  easy elevator

Ok, Hello my name's ArTh4$ and i will show how to make an elevator for new mappers.

 

 -First you make your own elevator , when you have it just make in the 2d view script brush model click on N    targetname / elevator

 

-Then put in the elevator or near it, a trigger can be use touch if u want click on F and it moves , multiple when u come near it moves , damage when u shot it moves.. what ever

 

-And end click on N and put in the trigger entity  targetname/ trig_elevator

 

 

I give here the script save it as mp_elevator.gsc

 

main()
{
thread elevator();
}

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

 

 

If you want it comes down just change the -  down like this:

main()
{
thread elevator();
}

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

 

For load it in your mapname.gsc add this line

 

 

mapsmpmp_elevator::main();

 

 Have fun making your own elevator^^  if you have a question or whatever just ask me ^^