06-24-2016, 02:28 PM
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:
Any help is really appreciated.
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.