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
please help me with a multiple lookat scripting problem!!(FIXED)
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#2
RE: please help me with a multiple lookat scripting problem!!

Not sure, but I re-wrote your script. Try this and tell me if it works.

If I understand what you wanted, you wanted the player to look at the monster when he picks up the key for 1.5 seconds, then when that's done, he looks at the closet for 1.5 seconds, then the player regains control for the character?

If so, try this:

void Key1(string &in asEntity)
{
SetEntityActive("LibraryGrunt", true);
StartPlayerLookAt("LibraryGrunt", 6, 6, "");
AddTimer("donelook", 1.5f, "TimerDoneLookAt_1");
AddEnemyPatrolNode("LibraryGrunt", "PathNodeArea_1", 0.1, "");
AddEnemyPatrolNode("LibraryGrunt", "PathNodeArea_13", 0.1, "");
SetPlayerActive(false);
SetSwingDoorLocked("FilledCabinet", false, true);
}

void TimerDoneLookAt_1(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("Lookatcloset", 6, 6, "");
AddTimer("donelook_5", 1.5f, "TimerDoneLookAt_2");
}

void TimerDoneLookAt_2(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}
03-13-2011, 05:56 AM
Find


Messages In This Thread
RE: please help me with a multiple lookat scripting problem!! - by Russ Money - 03-13-2011, 05:56 AM



Users browsing this thread: 2 Guest(s)