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
My custom level keeps crashing
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
Solved: 8 Years, 9 Months ago RE: My custom level keeps crashing

You have too many unnecessary {'s and }'s. These are to open and close function blocks. Not for fancy look.

////////////////////////////
// Run when entering map
void OnEnter()
{
    AddEnemyPatrolNode(servant_brute_1","PathNodeArea_1",0,"");
    AddEnemyPatrolNode("servant_brute_1","PathNodeArea_2",4,"");
}

void EnemyDisabled(string &in asEntity, string &in asType)
{

    if(GetEntitiesCollide("servant_brute_1", "ScriptArea_1"))
    {
        SetPropActiveAndFade("servant_brute_1", true, 0.5f);
    }
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}

03-30-2011, 02:56 AM
Website Find


Messages In This Thread
RE: My custom level keeps crashing - by Tanshaydar - 03-30-2011, 02:56 AM



Users browsing this thread: 4 Guest(s)