Frictional Games Forum

Full Version: Brick Wall
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3

Raven

I want to make part of a brick wall to be destructable. I tried building it out of loose bricks, but the engine can't handle large amounts of physics objects (20-30). Any of you guys who are proficient with it have any ideas?
I thought of using a particle system for it, but no clue how :)
It depends on the situation, but you could do something like this:

First:
- Create a model that is just a part of a brick wall.
- Create a model that is the above wall but destroyed. You could also have some loose bricks in this model.
- Create a dust / explosion particle system.

Now in the map, you set out the wall and the destroyed wall at the same position on the map. Set the detroyed wall active to false. Now when the wall is to be destroyed you set the normal wall active to false, the destroyed to true and create the particle system at the postion of the wall.

Now this will not be very dynamic, but it works as scripted event.

Hope that helps.

Raven

shouldnt this be enough to hide walldead while still showing wallalive? Or am I doing some wrong? (both are objects)

void OnStart()
{
SetGameEntityActive("wallalive",true);
SetGameEntityActive("walldead",false);
}
That should do the trick!

Raven

But it doesnt ;)
void OnStart()
{
SetGameEntityActive("wallalive",true); > will set the entity to true
SetGameEntityActive("walldead",false); > will set the entity to false
}

in this case you turn it on followed by turning it off
wont work if you ask me :)
Raven:
Any errors in the log?

Raven

Oops, didnt think of looking in the log :)

All fixed now :)

It's falling halfway through the floor though...

PS. Dark_Reaver, its two different objects ;)
now you mention, didnt see that, srry :)

Raven

more errors... game crashes with the standard "program has caused an error and will close" error when I run my map. It works fine in the sceneviewer.
Pages: 1 2 3
Reference URL's