Frictional Games Forum (read-only)

Full Version: How can I disable floors (planes)?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I disable floors (planes)?

I want to make it so that you go in to the Area an than the floor will despawn. (The Plane).

Does anyone know of a script for this?

My Script: (Doesn't Work)

{
AddEntityCollideCallback ("Player", "bodenwegarea", "BodenDespawnt", true, 1);
}

void BodenDespawnt (string &in asParent, string &in asChild, int alState)
{
SetEntityCollide ("boden", false); (<- "boden" is the floor)
GiveSanityDamage (5.0f, true);
}

Please help. thank.

[Image: unbenanntew3iz7p6v5.png]
I'm not sure if it's possible trough the level editor (Since it's an static object) but you can model a floor, export it and make it an entity (Or maybe an slide object, so it'll slide away underneath your feet)
Thank for your answer
Plane is a static object. You cannot interact with static objects in any way. Like Smoke said, you need to make a model with a floor texture.
I found the easiest way to do something like this in one of my maps was to take a random object (I use paintings since they're flat), then in the model editor line the area slightly above it with billboards of the floor texture you want to use. Make sure the body matches up to where the floor billboards are. Then just put as many into your level as how much floor you need, then despawn them when the time comes.