Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making the floor disappear
Author Message
Sprytny Offline
Junior Member

Posts: 7
Joined: Mar 2012
Reputation: 0
Post: #1
Making the floor disappear
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 !!!
04-01-2012 11:18 PM
Find all posts by this user Quote this message in a reply
Strembitsky Offline
Member

Posts: 243
Joined: Feb 2012
Reputation: 3
Post: #2
RE: Making the floor disappear
http://wiki.frictionalgames.com/hpl2/amn..._functions


That will help you in the future. Try SetEntityActive.

The Nightmares v1.0 - Dreadful Fires WIP
04-01-2012 11:43 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #3
RE: Making the floor disappear
The floor has to be an entity of at least a type of Object::Static.

Tutorials: From Noob to Pro
04-01-2012 11:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,609
Joined: Sep 2011
Reputation: 198
Post: #4
RE: Making the floor disappear
(04-01-2012 11:43 PM)Strembitsky Wrote:  http://wiki.frictionalgames.com/hpl2/amn..._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.
04-02-2012 12:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Sprytny Offline
Junior Member

Posts: 7
Joined: Mar 2012
Reputation: 0
Post: #5
RE: Making the floor disappear
(04-02-2012 12:28 AM)Statyk Wrote:  
(04-01-2012 11:43 PM)Strembitsky Wrote:  http://wiki.frictionalgames.com/hpl2/amn..._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 !!
(This post was last modified: 04-02-2012 03:58 PM by Sprytny.)
04-02-2012 11:51 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)