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
Why doesn't this script work? plz help
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#2
RE: Why doesn't this script work? plz help

I have no idea what you were scripting there but I would have had the player look at the 1st item, then 2nd and last by using timers over again something like

void LookAt(string &in asTimer)
{
AddTimer("LookAt1", 2, "Sanity");
}

void Sanity(string &in asTimer)
{
StartPlayerLookAt("corpse_male_torso_1", 100, 100, ""};
AddTimer("LookAt2", 2, "Sanity2");
}

void Sanity2(string &in asTimer)
{
StartPlayerLookAt("chest_of_drawers_nice_broken_1", 100, 100, "");
AddTimer("LookAt3", 2, "Sanity3");
}

void Sanity3(string &in asTimer)
{
StartPlayerLookAt("painting03_1", 100, 100, "");
AddTimer("Timer", 0.5, "StopLookAt1");
}

void StopLookAt1(string&in asTimer)
{
StopPlayerLookAt();
}

06-18-2012, 10:07 PM
Find


Messages In This Thread
RE: Why doesn't this script work? plz help - by Rownbear - 06-18-2012, 10:07 PM



Users browsing this thread: 1 Guest(s)