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

Posts: 8
Threads: 5
Joined: Mar 2011
Reputation: 0
#1
Exclamation  please help me with a multiple lookat scripting problem!!(FIXED)

Hey, I am trying to make my player look at monster for 1.5 seconds, and then turn around and look at a closet for 1.5 seconds (all after I pick up a key). I followed a tutorial exactly (I think) and I get an error. He looks at the monster fine but it's the looking at the closet part, here's the script:

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();
Continue();
}

void Continue();
{
StartPlayerLookAt("Lookatcloset", 6, 6, "");
AddTimer("donelook_5", 1.5f, "TimerDoneLookAt_2");
}

void TimerDoneLookAt_2(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}

void LookAtCloset();
{
StartPlayerLookAt("LookAtCloset", 6, 6, "")
AddTimer("donelook_1", 1.5f, "TimerDoneLookAt_1");
}

void TimerDoneLookAt_1(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}


Much help would be appreciated!!! thanks

-DoM
(This post was last modified: 03-13-2011, 06:14 AM by shmuckdom.)
03-13-2011, 04:32 AM
Find


Messages In This Thread
please help me with a multiple lookat scripting problem!!(FIXED) - by shmuckdom - 03-13-2011, 04:32 AM



Users browsing this thread: 1 Guest(s)