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
PlayerLookAt Intro (Pandemoneus')
theDARKW0LF Offline
Member

Posts: 150
Threads: 17
Joined: Sep 2010
Reputation: 0
#1
PlayerLookAt Intro (Pandemoneus')

So I copied Pandemoneus' script for the player to look left and right when he spawns in the map, replaced the entities to look at to the ones in the room I spawn in, but for some reason, it doesn't work even though I don't encounter any errors?

Any help would be appreciated (especially from Pandemoneus Tongue)!

Here's my code for the StartPlayerLookAt:
void Intro()
{
    AddDebugMessage("Begin Intro", false);
    SetPlayerCrouching(true);
    SetPlayerActive(false);
    FadeOut(0.0f);
    FadeIn(6.0f);
    FadeImageTrailTo(1.0f, 1.0f);
    AddTimer("1", 2, "IntroTimer");
    AddTimer("2", 2.5f, "IntroTimer");
    AddTimer("3", 3, "IntroTimer");
    AddTimer("4", 4, "IntroTimer");
    AddTimer("5", 6, "IntroTimer");
}

void IntroTimer(string &in asTimer)
{
    if(asTimer == "1"){
        PlayGuiSound("player_cough.snt", 0.7f);
    }
    else if(asTimer == "2"){
        SetPlayerCrouching(false);
    }
    else if(asTimer == "3"){
        StartPlayerLookAt("candlestick_tri_1", 2.0f, 1.0f, "");
    }
    else if(asTimer == "4"){
        StopPlayerLookAt();
        StartPlayerLookAt("DoorScript", 3.0f, 3.0f, "");
        PlayGuiSound("react_breath_slow", 0.7f);
    }
    else if(asTimer == "5"){
        StopPlayerLookAt();
        FadeImageTrailTo(0, 1.0f);
        PlayGuiSound("react_breath_slow", 0.5f);
        SetPlayerActive(true);
        SetMessage("Message", "Hint0", 0);
        AddDebugMessage("End Intro", false);
    }
}

EDIT: and I created a DoorScript for the player to look at since I'd like to get the slamming door script working too, so that shouldn't be the problem...

Check out my custom stories(1)(2)!
09-21-2010, 08:51 PM
Find


Messages In This Thread
PlayerLookAt Intro (Pandemoneus') - by theDARKW0LF - 09-21-2010, 08:51 PM



Users browsing this thread: 1 Guest(s)