Inurias
Junior Member
Posts: 20
Threads: 0
Joined: Jan 2012
Reputation:
2
|
RE: Expected crap
One "}" at the end of your script seems to be one error, remove it.
May cause errors too:
change:
GiveHint ("", "Descriptions", "Hint_4", 4.0f);
to:
GiveHint("", "Descriptions", "Hint_4", 4.0f);
Also, this part is not a problem, but the following script:
void Spawn2(string &in asTimer)
{
if(asTimer == "spawn1"){
PlaySoundAtEntity("", "guardian_activated.snt", "Play_At_2", 1.0f, false);
}
if(asTimer == "spawn2"){
SetEntityActive("servant_grunt_3", true);
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_25", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_26", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_27", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_28", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_29", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_30", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_31", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_32", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_33", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_34", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_35", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_36", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_37", 0.1, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_38", 5, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_41", 3, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_37", 5, "");
}
}
Can be shortened to:
void Spawn2(string &in asTimer)
{
if(asTimer == "spawn1")
{
PlaySoundAtEntity("", "guardian_activated.snt", "Play_At_2", 1.0f, false);
}
if(asTimer == "spawn2")
{
SetEntityActive("servant_grunt_3", true);
for (int i = 25; i <= 37; i++)
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_" + i, 0.1f, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_38", 5, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_41", 3, "");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_37", 5, "");
}
}
-Inurias
|
|