The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
StaticPhysics off not working
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
StaticPhysics off not working

Okay, holy crap this problem is driving me insane, as I can see no problems with my script. I've placed a chair in my map that I've called "fall_object_1." (Yes, I've double checked) This is my script:

PHP Code: (Select All)
void OnStart()
{
    
SetPropStaticPhysics("fall_object_1"true);
    
SetEntityPlayerInteractCallback("fall_object_1""FallObject"true);
}

void FallObject(string &in asEntity)
{
    
SetMessage("Doors""inside"0);
    
SetPropStaticPhysics("fall_object_1"false);


The message shows on the screen when I interact with the chair, but though the chair's static physics turn on when the map is started, it doesn't turn off when I interact with the chair.

12-15-2012, 03:18 PM
Find


Messages In This Thread
StaticPhysics off not working - by Damascus - 12-15-2012, 03:18 PM
RE: StaticPhysics off not working - by The chaser - 12-15-2012, 04:12 PM
RE: StaticPhysics off not working - by NaxEla - 12-17-2012, 04:08 AM



Users browsing this thread: 1 Guest(s)