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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PlayerStartArea_2 is not declared????????? [SOLVED]
waqas12346 Offline
Senior Member

Posts: 352
Threads: 38
Joined: Nov 2010
Reputation: 1
#1
Bug  PlayerStartArea_2 is not declared????????? [SOLVED]

Quote:void OnStart()
{
PlayMusic("25_amb.ogg", true, 1.0f, 0, 0, true);
AddEntityCollideCallback("Player", "ScriptArea_1", "Function01", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "Function02", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_4", "Function03", true, 1);
}

void Function01(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Monster", true);
AddEnemyPatrolNode("Monster", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("Monster", "PathNodeArea_9", 0, "");
PlayMusic("guardian_distant2", false, 13.0f, 0, 0, true);
}

void Function02(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer(PlayerStartArea_2);
FadeOut(0);
FadeIn(20);
PlayMusic("guardian_distant3", false, 13.0f, 0, 0, true);
PlayMusic("25_guardian_slime_appear03", false, 13.0f, 0, 0, true);
}

{
PlayMusic("23_amb.ogg", true, 1.0f, 0, 0, true);
}

void Function03(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Monster1", true);
AddEnemyPatrolNode("Monster1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_12", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_13", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_14", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_15", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_16", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_17", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_18", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_19", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_20", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_21", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_22", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_23", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_24", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_25", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_26", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_27", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_28", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_29", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_30", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_31", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_32", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_33", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_34", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_35", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_36", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_37", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_38", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_39", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_40", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_41", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_42", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_43", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_44", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_45", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_46", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_47", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_48", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_49", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_50", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_51", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_52", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_53", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_54", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_55", 0, "");
AddEnemyPatrolNode("Monster1", "PathNodeArea_56", 0, "");
PlayMusic("guardian_distant1", false, 13.0f, 0, 0, true);
}

/////////////
////////////////////////////
// Run when entering map
void OnEnter()
{

}

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

AngryAngry WHAT'S WRONG WITH TELEPORTING OR SCRIPTING AngryAngry
(This post was last modified: 05-02-2011, 08:04 PM by waqas12346.)
05-02-2011, 07:30 PM
Website Find
Exostalker Offline
Member

Posts: 204
Threads: 10
Joined: Aug 2010
Reputation: 3
#2
RE: PlayerStartArea_2 is not declared?????????

PlayMusic("guardian_distant2", false, 13.0f, 0, 0, true);

Shouldn't this be .ogg?

05-02-2011, 07:43 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#3
RE: PlayerStartArea_2 is not declared?????????

void Function02(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer("PlayerStartArea_2");
FadeOut(0);
FadeIn(20);
PlayMusic("guardian_distant3", false, 13.0f, 0, 0, true);
PlayMusic("25_guardian_slime_appear03", false, 13.0f, 0, 0, true);
}

The bold part didn't have quotes wrapped around it.

Exostalker, it doesn't matter I believe. If you call PlayMusic, the engine will automatically think that the first string is an .ogg since it can't play anything else with that command.
05-02-2011, 07:46 PM
Find
Mofo Offline
Member

Posts: 71
Threads: 4
Joined: Sep 2010
Reputation: 2
#4
RE: PlayerStartArea_2 is not declared?????????

Quote:TeleportPlayer("PlayerStartArea_2");

*edit*
Ninja'd Smile
(This post was last modified: 05-02-2011, 07:48 PM by Mofo.)
05-02-2011, 07:47 PM
Find
waqas12346 Offline
Senior Member

Posts: 352
Threads: 38
Joined: Nov 2010
Reputation: 1
#5
RE: PlayerStartArea_2 is not declared?????????

It works Thank you all Smile
05-02-2011, 08:04 PM
Website Find




Users browsing this thread: 1 Guest(s)