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
Error when testing my map
Raymond Offline
Member

Posts: 126
Threads: 24
Joined: Feb 2011
Reputation: 0
#33
RE: Error when testing my map

////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
///////////////
////Callbacks
///////////////

void OnStart()
{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_2" , "Collide_Area1" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_3" , "Collide_Area2" , true , 1);
AddEntityCollideCallback("Player" , "ScriptArea_4" , "Collide_Area3" , true , 1);
AddEntityCollideCallback("Player", "InsanityArea_2", "insanity1", true, 1);
AddEntityCollideCallback("Player", "ScriptSpawn01", "ScriptSpawn1", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_4", "CollidePlayerTeleport", true, 1);
}
//////////////////////
//////Functions
//////////////////////

void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 0, "");
}

void Collide_Area1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("slime_anim_wall_1" , true);
}

void PickedUpNote(string &in entity)
{
SetEntityActive("servant_grunt_2", true);
SetEntityActive("slime_pile_large_2", true);
SetEntityActive("slime_pile_large_1", true);
SetEntityActive("SlimeDamageArea_1", true);
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_21", 10, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_18", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_22", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_27", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_29", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_31", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_33", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_35", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_36", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_38", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_37", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_40", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_39", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_41", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_42", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_43", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_44", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_45", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_47", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_46", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_48", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_49", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_50", 0, "");
AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_90", 0, "");
}

void insanity1(string &in entity)
{
StartScreenShake(0.5f, 0.01f, 0.1f, 0.02f);
GiveSanityDamage(10.0f, true);
PlayMusic("insanity_baby_cry1.ogg", false, 1.0f, 0.5f, 10, false);
}

void PickedUpKey(string &in entity)
{
SetEntityActive("waterlurker_1", true);
}

void ScriptSpawn01(string &in entity)
{
SetEntityActive("ScriptArea_3", true);
}

void CollidePlayerTeleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer("PlayerStartArea_3");
FadeOut(0);
FadeIn(20);
AddDebugMessage("Teleporting!", false);
}

///////////////////////////////
//PUT CALLBACK HERE
///////////////////////////////

void UltimateTruth(string &in asDoor)
{
SetMessage("One World To Another", "UltimateTruth", 0);
}

I got a problem (again Sad ), the teleport won't work, please help (again) Smile.

One World To Another [DEMO] coming soon.
03-12-2011, 10:28 AM
Find


Messages In This Thread
Error when testing my map - by Raymond - 02-23-2011, 12:22 PM
RE: Error when testing my map - by Vradcly - 02-23-2011, 12:32 PM
RE: Error when testing my map - by Raymond - 02-23-2011, 12:39 PM
RE: Error when testing my map - by Raymond - 02-24-2011, 10:06 AM
RE: Error when testing my map - by Selyp - 02-24-2011, 10:29 AM
RE: Error when testing my map - by Raymond - 02-24-2011, 10:56 AM
RE: Error when testing my map - by Vradcly - 02-24-2011, 11:04 AM
RE: Error when testing my map - by Raymond - 02-24-2011, 12:01 PM
RE: Error when testing my map - by Nye - 02-24-2011, 12:00 PM
RE: Error when testing my map - by Vradcly - 02-24-2011, 12:16 PM
RE: Error when testing my map - by Raymond - 02-25-2011, 09:47 AM
RE: Error when testing my map - by Linus Ågren - 02-25-2011, 10:19 AM
RE: Error when testing my map - by Raymond - 02-25-2011, 10:59 AM
RE: Error when testing my map - by nkmol - 02-26-2011, 11:08 AM
RE: Error when testing my map - by Raymond - 02-26-2011, 10:53 AM
RE: Error when testing my map - by Raymond - 02-26-2011, 02:44 PM
RE: Error when testing my map - by nkmol - 02-26-2011, 07:02 PM
RE: Error when testing my map - by Raymond - 02-27-2011, 01:21 AM
RE: Error when testing my map - by Raymond - 02-27-2011, 10:51 AM
RE: Error when testing my map - by nkmol - 02-27-2011, 12:22 PM
RE: Error when testing my map - by Raymond - 02-27-2011, 02:39 PM
RE: Error when testing my map - by XxItachi09xX - 02-28-2011, 10:23 AM
RE: Error when testing my map - by Raymond - 02-28-2011, 10:26 AM
RE: Error when testing my map - by Zuul - 03-03-2011, 10:38 AM
RE: Error when testing my map - by nkmol - 02-28-2011, 03:59 PM
RE: Error when testing my map - by Raymond - 03-02-2011, 10:47 AM
RE: Error when testing my map - by nkmol - 03-02-2011, 04:10 PM
RE: Error when testing my map - by Raymond - 03-03-2011, 08:35 AM
RE: Error when testing my map - by Raymond - 03-05-2011, 08:40 AM
RE: Error when testing my map - by Oscar House - 03-05-2011, 08:57 AM
RE: Error when testing my map - by Raymond - 03-05-2011, 09:19 AM
RE: Error when testing my map - by Raymond - 03-12-2011, 06:24 AM
RE: Error when testing my map - by Raymond - 03-12-2011, 10:28 AM
RE: Error when testing my map - by Raymond - 03-13-2011, 06:40 AM



Users browsing this thread: 3 Guest(s)