Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Game Problems
Fishnugget Offline
Member

Posts: 72
Threads: 6
Joined: Aug 2012
Reputation: 1
#24
RE: Game Problems

like this?


void OnEnter()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "Clown1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_2" , "Clown2" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_3" , "Clown3" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_1" , "CollideDoorExplode" , true , 1);
}

void Clown1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Clooni1_1", true);
AddEnemyPatrolNode("Clooni1_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("Clooni1_1", "PathNodeArea_2", 0, "Idle");
AddEnemyPatrolNode("Clooni1_1", "PathNodeArea_3", 0, "Idle");
AddEnemyPatrolNode("Clooni1_1", "PathNodeArea_4", 0, "Idle");
AddEnemyPatrolNode("Clooni1_1", "PathNodeArea_5", 0, "Idle");
}

void Clown2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Clooni1_3", true);
AddEnemyPatrolNode("Clooni1_3", "PathNodeArea_6", 0, "Idle");
AddEnemyPatrolNode("Clooni1_3", "PathNodeArea_7", 0, "Idle");
AddEnemyPatrolNode("Clooni1_3", "PathNodeArea_8", 0, "Idle");
AddEnemyPatrolNode("Clooni1_3", "PathNodeArea_9", 0, "Idle");
AddEnemyPatrolNode("Clooni1_3", "PathNodeArea_10", 0, "Idle");
}

void Clown3(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Clooni1_2", true);
AddEnemyPatrolNode("Clooni1_2", "PathNodeArea_11", 0, "Idle");
AddEnemyPatrolNode("Clooni1_2", "PathNodeArea_12", 0, "Idle");
}

void CollideDoorExplode(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("castle_1", false);
SetEntityActive("castle_broken_1", true);
CreateParticleSystemAtEntity("", "ps_break_wood.ps", "DoorExplodeParticle", false);
PlaySoundAtEntity("", "break_wood.snt", "DoorExplodeParticle", 0, false);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
12-08-2012, 06:32 PM
Find


Messages In This Thread
Game Problems - by Fishnugget - 12-06-2012, 05:00 PM
RE: Game Problems - by The chaser - 12-06-2012, 05:14 PM
RE: Game Problems - by Fishnugget - 12-06-2012, 05:32 PM
RE: Game Problems - by The chaser - 12-06-2012, 06:21 PM
RE: Game Problems - by xxxxxxxxxxxxxxxx - 12-06-2012, 05:40 PM
RE: Game Problems - by Fishnugget - 12-07-2012, 07:21 AM
RE: Game Problems - by FlawlessHappiness - 12-07-2012, 08:03 AM
RE: Game Problems - by Fishnugget - 12-07-2012, 08:06 AM
RE: Game Problems - by FlawlessHappiness - 12-07-2012, 08:55 AM
RE: Game Problems - by Fishnugget - 12-07-2012, 02:27 PM
RE: Game Problems - by The chaser - 12-07-2012, 02:47 PM
RE: Game Problems - by Fishnugget - 12-07-2012, 03:48 PM
RE: Game Problems - by FlawlessHappiness - 12-07-2012, 03:51 PM
RE: Game Problems - by Fishnugget - 12-07-2012, 06:19 PM
RE: Game Problems - by FlawlessHappiness - 12-07-2012, 07:52 PM
RE: Game Problems - by Fishnugget - 12-07-2012, 08:07 PM
RE: Game Problems - by The chaser - 12-07-2012, 08:36 PM
RE: Game Problems - by Fishnugget - 12-08-2012, 04:54 PM
RE: Game Problems - by FlawlessHappiness - 12-08-2012, 05:08 PM
RE: Game Problems - by Fishnugget - 12-08-2012, 05:21 PM
RE: Game Problems - by The chaser - 12-08-2012, 05:57 PM
RE: Game Problems - by Fishnugget - 12-08-2012, 06:08 PM
RE: Game Problems - by FlawlessHappiness - 12-08-2012, 06:19 PM
RE: Game Problems - by Fishnugget - 12-08-2012, 06:32 PM
RE: Game Problems - by FlawlessHappiness - 12-08-2012, 06:35 PM
RE: Game Problems - by Fishnugget - 12-08-2012, 06:45 PM
RE: Game Problems - by The chaser - 12-08-2012, 07:17 PM
RE: Game Problems - by Fishnugget - 12-08-2012, 07:39 PM
RE: Game Problems - by The chaser - 12-08-2012, 08:16 PM
RE: Game Problems - by FlawlessHappiness - 12-08-2012, 10:13 PM
RE: Game Problems - by xxxxxxxxxxxxxxxx - 12-08-2012, 10:28 PM
RE: Game Problems - by Fishnugget - 12-08-2012, 11:25 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 10:45 AM
RE: Game Problems - by FlawlessHappiness - 12-09-2012, 11:33 AM
RE: Game Problems - by Fishnugget - 12-09-2012, 12:06 PM
RE: Game Problems - by FlawlessHappiness - 12-09-2012, 12:24 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 12:26 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 01:32 PM
RE: Game Problems - by FlawlessHappiness - 12-09-2012, 01:51 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 01:57 PM
RE: Game Problems - by The chaser - 12-09-2012, 02:03 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 02:12 PM
RE: Game Problems - by FlawlessHappiness - 12-09-2012, 02:27 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 02:28 PM
RE: Game Problems - by The chaser - 12-09-2012, 02:39 PM
RE: Game Problems - by FlawlessHappiness - 12-09-2012, 02:39 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 02:58 PM
RE: Game Problems - by FlawlessHappiness - 12-09-2012, 03:17 PM
RE: Game Problems - by The chaser - 12-09-2012, 03:31 PM
RE: Game Problems - by FlawlessHappiness - 12-09-2012, 03:52 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 03:28 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 03:33 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 03:55 PM
RE: Game Problems - by The chaser - 12-09-2012, 04:07 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 04:11 PM
RE: Game Problems - by The chaser - 12-09-2012, 04:18 PM
RE: Game Problems - by Fishnugget - 12-09-2012, 04:22 PM
RE: Game Problems - by FlawlessHappiness - 12-09-2012, 04:47 PM



Users browsing this thread: 2 Guest(s)