Frictional Games Forum (read-only)
Making the floor disappear - 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: Making the floor disappear (/thread-14423.html)



Making the floor disappear - Sprytny - 04-01-2012

Hello!
I have a floor and beneath i have a hole that i want player to fall. But first i must find what function to use, i think i can just set the floor not collides after player comes to the area. It sounds simple but i don't know how to do that in my code. Is it possible? Any ideas? Thanks for help !!!


RE: Making the floor disappear - Strembitsky - 04-01-2012

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions


That will help you in the future. Try SetEntityActive.


RE: Making the floor disappear - Your Computer - 04-01-2012

The floor has to be an entity of at least a type of Object::Static.


RE: Making the floor disappear - Statyk - 04-02-2012

(04-01-2012, 11:43 PM)Strembitsky Wrote: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions


That will help you in the future. Try SetEntityActive.
A plane is not an entity you are thinking about. A plane cannot be activated and deactivated by script. Like YC said, it has to be an object or model of some type.

You could always do it cheaply and make a billboard of the floor texture with a blockbox around it, so the player walks on the blockbox. Then have a script deactivate the billboard (floor) and the blockbox.


RE: Making the floor disappear - Sprytny - 04-02-2012

(04-02-2012, 12:28 AM)Statyk Wrote:
(04-01-2012, 11:43 PM)Strembitsky Wrote: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions


That will help you in the future. Try SetEntityActive.
A plane is not an entity you are thinking about. A plane cannot be activated and deactivated by script. Like YC said, it has to be an object or model of some type.

You could always do it cheaply and make a billboard of the floor texture with a blockbox around it, so the player walks on the blockbox. Then have a script deactivate the billboard (floor) and the blockbox.
It is exactly what i was asking about. I gonna set a plane to not collide and put blockboxes below. I already have the script what is used to make them disappear, will tell you whether it works when i come back home.

Ok, i added a note and after that the boxes disappears. Thank you !!