(06-22-2012, 12:42 PM)FastHunteR Wrote: you don't need string& when they aren't callback syntax functions.
Also, do it under the cavein_function, since you want it to happen at the same time, also, by your move there, you got a function with nothing to do.
delete everything from cavein_function on and paste this:
void cavein_function(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "explosion_rock_large.snt", "cave_in_1", 0, false);
SetEntityActive("cave_in_1", true);
SetEntityActive("cave_in_2", true);
CreateParticleSystemAtEntity("ParticleSystem_1", "ps_break_cavein.ps", "cave_in_1", false);
}
Thank you so much for all your help!
First room is finished
+1 Rep
EDIT:
You know that tunnel that has 2 ways? Where can I find it and how can I put it in the middle of a wall? Because I wouldn't be able to enter the tunnel because the wall would be blocking the entrance.
Do I have to edit the wall and make a hole on it?