• Welcome Guest, The new Modme forums are here! Please visit here for all recommended information.

Tutorial [Tutorial] Buyable Elevator

ModmeBot

Modme hero
Reply By: Abnormal202
Nice function. May I recommend adding a little life with some sounds?​
By chaning these functions to this:​
PHP:
function elevator_rise( height, speed )
{
	level.elevator_model PlaySound("elevator_music");
	level.elevator_model PlayLoopSound("mechanical_whirring");
	level.elevator_model movez (height, speed);
	level.elevator_model waittill ("movedone");
	level.elevator_model StopSound("elevator_music");
	level.elevator_model StopSound("mechanical_whirring");
}

function elevator_fall( height, speed )
{
	level.elevator_model PlaySound("elevator_music");
	level.elevator_model PlayLoopSound("mechanical_whirring");
	level.elevator_model movez (height - (height * 2), speed);
	level.elevator_model waittill ("movedone");
	level.elevator_model StopSound("elevator_music");
	level.elevator_model StopSound("mechanical_whirring");
}

function bottom_door_open()
{
	level.elevator_bottom_door_model PlaySound("ding");
	level.elevator_bottom_door_model movex (130, 1);
}

function bottom_door_close()
{
	level.elevator_bottom_door_model PlaySound("door_close");
	level.elevator_bottom_door_model movex (130 - (130 * 2), 1);
}

function top_door_open()
{
	level.elevator_top_door_model PlaySound("ding");
	level.elevator_top_door_model movex (130, 1);
}

function top_door_close()
{
	level.elevator_top_door_model PlaySound("door_close");
	level.elevator_top_door_model movex (130 - (130 * 2), 1);
}


You can play sounds whenever a door closes or opens, when the elevator is traveling, as well as some groovy elevator tunes.​
Just a suggestion, obviously everyone would have to get the sounds themselves, but they could rip most of it from Die Rise.​
 

ModmeBot

Modme hero
Reply By: ZombieKid164
Abnormal202
You can play sounds whenever a door closes or opens, when the elevator is traveling, as well as some groovy elevator tunes.​
Just a suggestion, obviously everyone would have to get the sounds themselves, but they could rip most of it from Die Rise.​
I know I could have added sounds, but sadly, I do not own BO2 for PC, so I cannot get the sounds.​
 

ModmeBot

Modme hero
Reply By: Abnormal202
ZombieKid164
Abnormal202
You can play sounds whenever a door closes or opens, when the elevator is traveling, as well as some groovy elevator tunes.​
Just a suggestion, obviously everyone would have to get the sounds themselves, but they could rip most of it from Die Rise.​
I know I could have added sounds, but sadly, I do not own BO2 for PC, so I cannot get the sounds.​
Here are the elevator as well as trample Steam sounds (they could both work): <download data-url="https://mega.nz/#!yphFgbbQ!leE-LnNp5DmO-O1yu3Poz8IgAw9tb3bQ_K81JHuDxD8"></download>​
 

ModmeBot

Modme hero
Reply By: themotogamer115
is there anyway of calling the elevator up from the top if its at the bottom?​
 

ModmeBot

Modme hero
Reply By: greatbrendini
ZombieKid164
Blink-420ZombieKid164Blink-420Just what I needed :D Trying it out now, thanks! You're welcome! If you find any problems or need help, just ask. Works flawlessly, stamped prefab, resized some stuff and added textures, love it! One suggestion, or request I should say, would be to add a call feature where you can call the elevator if its not on the same floor, such as "five" zombies from black ops 1, would be awesome! I'm currently working on a new script, containing the call feature, which I will release soon.
is the new script anywhere near done? because i REALLY need to have the call button, otherwise i can't even use the elevator at all
 

ModmeBot

Modme hero
Reply By: truman08
The Zombies will not attack whilst the player is standing inside the elevator. Did this issue get fixed? I have version 2 but I'm still getting the problem.
 

jako1988

New member
hey,
rondom question:
if i want my elevator(the rising parts) to have multiple brushes,
do i need to name every part diff. and add every part in the code or,
can i link them somehow, tried the prefab but does not work,it does not move when i have multiple things called the same,
and when i makethe parts first and prefab,and then put a script brush on it my prefab changes in a big white brush.
any suggestions?

many thnks in advance
 

mrlednor

Active member
Reply By: Abnormal202
Nice function. May I recommend adding a little life with some sounds?
By chaning these functions to this:
PHP:
function elevator_rise( height, speed )
{
    level.elevator_model PlaySound("elevator_music");
    level.elevator_model PlayLoopSound("mechanical_whirring");
    level.elevator_model movez (height, speed);
    level.elevator_model waittill ("movedone");
    level.elevator_model StopSound("elevator_music");
    level.elevator_model StopSound("mechanical_whirring");
}

function elevator_fall( height, speed )
{
    level.elevator_model PlaySound("elevator_music");
    level.elevator_model PlayLoopSound("mechanical_whirring");
    level.elevator_model movez (height - (height * 2), speed);
    level.elevator_model waittill ("movedone");
    level.elevator_model StopSound("elevator_music");
    level.elevator_model StopSound("mechanical_whirring");
}

function bottom_door_open()
{
    level.elevator_bottom_door_model PlaySound("ding");
    level.elevator_bottom_door_model movex (130, 1);
}

function bottom_door_close()
{
    level.elevator_bottom_door_model PlaySound("door_close");
    level.elevator_bottom_door_model movex (130 - (130 * 2), 1);
}

function top_door_open()
{
    level.elevator_top_door_model PlaySound("ding");
    level.elevator_top_door_model movex (130, 1);
}

function top_door_close()
{
    level.elevator_top_door_model PlaySound("door_close");
    level.elevator_top_door_model movex (130 - (130 * 2), 1);
}


You can play sounds whenever a door closes or opens, when the elevator is traveling, as well as some groovy elevator tunes.
Just a suggestion, obviously everyone would have to get the sounds themselves, but they could rip most of it from Die Rise.
i have the sounds from die rise and ur added lines to a script do i make a sound allies or just add them in sound_assets ?
 
Top