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
Hpl 2 help
s2skafte Offline
Junior Member

Posts: 7
Threads: 2
Joined: Mar 2013
Reputation: 0
#14
RE: Hpl 2 help

i have got another problem unexpected token 21,1 '{'

New script for new map

void OnStart()
{
AddEntityCollideCallback("Player", "push", "Push", true, 1);
AddEntityCollideCallback("Player", "door_slam", "Slam", true, 1);
}


void Push(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_pant.snt", "push", 0, false);
AddPlayerBodyForce(-300000, 0, 0, false);
}


void Slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_1", true, true);
SetSwingDoorLocked("cellar_1", true, true);
PlaySoundAtEntity("", "break_wood.snt", "door_scare", 0, false);
}
{

AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
}
03-25-2013, 11:33 PM
Find Reply


Messages In This Thread
Hpl 2 help - by s2skafte - 03-23-2013, 02:03 AM
RE: Hpl 2 help - by plutomaniac - 03-23-2013, 02:29 AM
RE: Hpl 2 help - by s2skafte - 03-23-2013, 05:33 AM
RE: Hpl 2 help - by NaxEla - 03-23-2013, 07:40 AM
RE: Hpl 2 help - by PutraenusAlivius - 03-23-2013, 06:49 AM
RE: Hpl 2 help - by s2skafte - 03-24-2013, 06:02 AM
RE: Hpl 2 help - by PutraenusAlivius - 03-24-2013, 06:10 AM
RE: Hpl 2 help - by s2skafte - 03-25-2013, 01:30 AM
RE: Hpl 2 help - by Your Computer - 03-25-2013, 01:53 AM
RE: Hpl 2 help - by s2skafte - 03-25-2013, 05:44 PM
RE: Hpl 2 help - by NaxEla - 03-25-2013, 05:35 AM
RE: Hpl 2 help - by NaxEla - 03-25-2013, 06:49 PM
RE: Hpl 2 help - by s2skafte - 03-25-2013, 09:34 PM
RE: Hpl 2 help - by s2skafte - 03-25-2013, 11:33 PM
RE: Hpl 2 help - by PutraenusAlivius - 03-26-2013, 06:30 AM



Users browsing this thread: 1 Guest(s)