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
#79
RE: how to make floor break when u go to a certain area

PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""Area""FunctionName"true1);
}

void FunctionName(string &in asParentstring &in asChildint alState)
{
    
AddPlayerBodyForce(-5000.0f0.0f0.0ftrue);


Something along those lines. As I said, I haven't tested it. If local doesn't work (the last boolean), try setting it to false then use the co-ordinate direction you want the player to be pushed in. Increase the number if it is too weak.

07-07-2014, 10:47 PM
Find


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



Users browsing this thread: 2 Guest(s)