Frictional Games Forum (read-only)
How can I disable floors (planes)? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How can I disable floors (planes)? (/thread-22291.html)



How can I disable floors (planes)? - EnemyAC130 - 07-31-2013

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]


RE: How can I disable floors (planes)? - OriginalUsername - 07-31-2013

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)


RE: How can I disable floors (planes)? - EnemyAC130 - 07-31-2013

Thank for your answer


RE: How can I disable floors (planes)? - MulleDK19 - 07-31-2013

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.


RE: How can I disable floors (planes)? - DeAngelo - 08-01-2013

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.