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


Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make floor break when u go to a certain area
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#38
RE: how to make floor break when u go to a certain area

If you want a bookshelf to move, you can use one of the entities that do so. One of them slide along an axis, another rotates. If you want it to move in a different fashion, you'll need to edit the entity file.

On the lever entity in the Level Editor, go to the entity tab and write a function name in ConnectionStateChangeCallback. Then go to your script and add the callback for it.

PHP Code: (Select All)
void FunctionName(string &in asEntityint alState)
{
    
SetMoveObjectState("bookshelf"1);


(This post was last modified: 06-22-2014, 10:42 PM by Mudbill.)
06-22-2014, 10:41 PM
Find


Messages In This Thread
RE: how to make floor break when u go to a certain area - by Mudbill - 06-22-2014, 10:41 PM



Users browsing this thread: 1 Guest(s)