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 !!!
The floor has to be an entity of at least a type of Object::Static.
(04-01-2012, 11:43 PM)Strembitsky Wrote: [ -> ][url]http://wiki.frictionalgames.com/hpl2/amn..._functions[/url]
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.
(04-02-2012, 12:28 AM)Statyk Wrote: [ -> ] (04-01-2012, 11:43 PM)Strembitsky Wrote: [ -> ][url]http://wiki.frictionalgames.com/hpl2/amn..._functions[/url]
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 !!