Modme Forums

How to make a plane crash mid game?

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: lilmayo

Is there anyway I can make it so that when the player turns on power, a plane crashing sound plays and one of the buildings and courtyards in my map that was previously not destroyed becomes all destroyed with wreckage from a huge plane in it? I don't need to actually make a plane flying in the sky since I'll make it so the power switch is inside and far away from the actual courtyard. I just need to know if it's possible, and how?


ModmeBot:

Reply By: natesmithzombies

I do not map so as far as making the building actually change Idk how to do that. But as for the sound/script here is what you would do:

function cinematic_power
{
	level flag::wait_till( "power_on" ); 
	wait(5); // give it some time 
	PlaySoundToTeam( "custom_sound_here", "allies" );
	// This is where you would do the effects on the house
}



and you would need to thread that in your function main like so:

level thread cinematic_power();


ModmeBot:

Reply By: lilmayo

natesmithzombies

I do not map so as far as making the building actually change Idk how to do that. But as for the sound/script here is what you would do:

function cinematic_power
{
	level flag::wait_till( "power_on" ); 
	wait(5); // give it some time 
	PlaySoundToTeam( "custom_sound_here", "allies" );
	// This is where you would do the effects on the house
}



and you would need to thread that in your function main like so:

level thread cinematic_power();

Alright thanks! If anyone else sees this and does know how to make a building change once power is turned on it would also be greatly appreciated!