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
Expected crap
Inurias Offline
Junior Member

Posts: 20
Threads: 0
Joined: Jan 2012
Reputation: 2
#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
01-12-2012, 09:07 PM
Find


Messages In This Thread
Expected crap - by i3670 - 01-12-2012, 08:39 PM
RE: Expected crap - by Inurias - 01-12-2012, 09:07 PM
RE: Expected crap - by i3670 - 01-12-2012, 09:18 PM
RE: Expected crap - by Inurias - 01-12-2012, 09:26 PM
RE: Expected crap - by i3670 - 01-12-2012, 09:31 PM
RE: Expected crap - by Inurias - 01-12-2012, 09:34 PM
RE: Expected crap - by i3670 - 01-12-2012, 09:40 PM
RE: Expected crap - by Inurias - 01-12-2012, 09:42 PM



Users browsing this thread: 2 Guest(s)