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
Another Problem Again...
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#1
Another Problem Again...

I want to make it so when i walk into an area, you look at the monster (which walks to a patrol node) for a period of time then it stops, when it reaches the path rode is disappears.

It won't work here is my script:
void OnStart(){AddEntityCollideCallback("Player", "ScareOne", "ScareOne", true, 1);}
{AddEntityCollideCallback("Player", "ScareTwoArea", "ScareTwo", true, 1);}
void ScareOne(string &in asParent, string &in asChild, int alState){SetLampLit("ScareOneLight", true, true);SetLampLit("ScareOneLightTwo", true, true);SetEntityActive("ScareOneMonster", true);ShowEnemyPlayerPosition("ScareOneMonster");PlaySoundAtEntity("", "react_scare3.ogg", "Player", 10.0f, true);PlayMusic("LevelOneMusic", true, 10.0f, 2.0f, 2.0f, true);SetSwingDoorLocked("ScareOneDoor", true, true);}
void ScareTwo(string &in asParent, string &in asChild, int alState){AddEnemyPatrolNode("ScareTwoMonster", "ScareTwo", 10.0f, "");StartPlayerLookAt("ScareTwoMonster", 5.0f, 6.0f, "");AddTimer("ScareTwo", 3.0f, "ScareTimerTwo");}
void ScareTimerTwo(string &in asTimer){StopPlayerLookAt();}
void OnEnter(){}void OnLeave(){}

:Work In Progress:
Insanity
(This post was last modified: 10-16-2011, 11:17 AM by JoeBradleyUK.)
10-14-2011, 10:15 PM
Find


Messages In This Thread
Another Problem Again... - by JoeBradleyUK - 10-14-2011, 10:15 PM
RE: Another Problem Again... - by Statyk - 10-14-2011, 11:04 PM
RE: Another Problem Again... - by JoeBradleyUK - 10-15-2011, 12:28 AM
RE: Another Problem Again... - by Juby - 10-15-2011, 01:30 AM
RE: Another Problem Again... - by Statyk - 10-15-2011, 12:54 PM
RE: Another Problem Again... - by Gamemakingdude - 10-16-2011, 12:22 AM
RE: Another Problem Again... - by JoeBradleyUK - 10-16-2011, 10:13 AM



Users browsing this thread: 1 Guest(s)