waqas12346
Senior Member
Posts: 352
Threads: 38
Joined: Nov 2010
Reputation:
1
|
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()
{
}
WHAT'S WRONG WITH TELEPORTING OR SCRIPTING
(This post was last modified: 05-02-2011, 08:04 PM by waqas12346.)
|
|