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
Script Help Wheel lever wont stick in positon once turned
serbusfish Offline
Member

Posts: 211
Threads: 75
Joined: Aug 2012
Reputation: 0
#1
Wheel lever wont stick in positon once turned

I have wrote a script which opens a bulkhead door, but for some reason the wheel lever wont stick in position even though it is sucessfully opening the door. I tried using the stuckstate command and SetPropStaticPhysics but neither work. Here is what I have:

Quote:void OnStart()
{
SetEntityConnectionStateChangeCallback("Gate_Valve_1", "ValveEventHandler");

void ValveEventHandler (string &in asEntity, int alState)

{
if (alState == 1)
{
SetPropStaticPhysics("Gate_Valve_1", true);
SetMoveObjectStateExt("sewer_bulkhead_1", 0.88, 5, 1, 0.12, true);

}
}

Any help is really appreciated.

06-24-2016, 02:28 PM
Find


Messages In This Thread
Wheel lever wont stick in positon once turned - by serbusfish - 06-24-2016, 02:28 PM



Users browsing this thread: 1 Guest(s)