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
#7
RE: Another Problem Again...

I made the modifications you guys said but i still have a problem, it says it's on 6 - 1 unexpected token { or something like that
here's the script again, hopefully it will be entered like it is in my hps file:

void OnStart()
{
AddEntityCollideCallback("Player", "ScareOne", "ScareOneCallback", true, 1);
}

{
AddEntityCollideCallback("Player", "ScareTwoArea", "ScareTwoCallback", true, 1);
}

void ScareOneCallback(string &in asParent, string &in asChild, int alState)
{
SetLampLit("ScareOneLight", true, true);
SetLampLit("ScareOneLightTwo", true, true);
SetEntityActive("ScareOneMonster", true);
ShowEnemyPlayerPosition("ScareOneMonster");
PlaySoundAtEntity("", "react_scare3.snt", "Player", 10.0f, true);
PlayMusic("LevelOneMusic.ogg", true, 10.0f, 2.0f, 2.0f, true);
SetSwingDoorLocked("ScareOneDoor", true, true);
}

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

I figured it out nevermind xD

:Work In Progress:
Insanity
(This post was last modified: 10-16-2011, 10:38 AM by JoeBradleyUK.)
10-16-2011, 10:13 AM
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)