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
Can't get door to open in Custom story
CrazyKilla Offline
Junior Member

Posts: 19
Threads: 6
Joined: Apr 2012
Reputation: 0
#1
Can't get door to open in Custom story

Hello, im CrazyKilla

Im making a custom story and i made this:
void OpenWindDoor(string &in asParent, string &in asChild, int alState)
{
       {
        SetSwingDoorDisableAutoClose("door_wind", true);
        SetSwingDoorClosed("door_wind", false, true);
        AddPropForce("door_wind", 0, 0, -900, "world");
        AddTimer("", 0.2, "TimerWindDoor");
       }

}
    
void TimerWindDoor(string &in asTimer)
{
    PlaySoundAtEntity("scare", "react_scare.snt", "Player", 0, false);
    PlaySoundAtEntity("creaking_door", "joint_door_move_special.snt", "door_wind", 1.0 / 1.8f, false);
    
    GiveSanityDamage(5, true);
    
    AddTimer("breath1", 2.0f, "TimerStopCreak");
    AddTimer("breath2", 5.0f, "TimerStopCreak");
    AddTimer("breath3", 8.0f, "TimerStopCreak");
    
    AddTimer("door_gust", 0.3f, "TimerSwingDoor");
    
    StopSound("creaking_door", 0.4f);
}
But When i go to the script area, player loses sanity, i get a screen effect and a breath sound, see the wind, but the door stays closed, help please!
09-13-2012, 03:38 PM
Find


Messages In This Thread
Can't get door to open in Custom story - by CrazyKilla - 09-13-2012, 03:38 PM



Users browsing this thread: 1 Guest(s)