Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help New Question: How to create a door
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#47
RE: 3 Questions: Cave In and Destroying bookshelf

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);
}
06-22-2012, 12:42 PM
Find


Messages In This Thread
New Question: How to create a door - by Nervly - 06-20-2012, 12:55 PM
RE: 3 Questions: Cave In and Destroying bookshelf - by Cruzore - 06-22-2012, 12:42 PM



Users browsing this thread: 1 Guest(s)