Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making the floor disappear
Sprytny Offline
Junior Member

Posts: 7
Threads: 3
Joined: Mar 2012
Reputation: 0
#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
Strembitsky Offline
Senior Member

Posts: 254
Threads: 37
Joined: Feb 2012
Reputation: 3
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#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
Find
Sprytny Offline
Junior Member

Posts: 7
Threads: 3
Joined: Mar 2012
Reputation: 0
#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




Users browsing this thread: 1 Guest(s)