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
Need some brief help.
Selyp Offline
Member

Posts: 210
Threads: 19
Joined: Feb 2011
Reputation: 7
#5
RE: Need some brief help.

The ending bracket would be the end of that specific function. Any other functions you add would go under it, and you would start over. For example, say you had another AddEntityCollideCallback in your OnStart section it would look like this.

void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback ("Player", "PlayerCollide2", "MonsterFunction2", true, 1);
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
}

void MonsterFunction2 (string &in asParent, string &in asChild, int alState)
{
Whatever you want to happen here
}


Atlantia - An Amnesia: The Dark Descent Full Conversion Mod
09-04-2011, 12:38 AM
Find


Messages In This Thread
Need some brief help. - by PurpelPumpkin - 09-03-2011, 09:34 AM
RE: Need some brief help. - by rybray - 09-03-2011, 02:57 PM
RE: Need some brief help. - by PurpelPumpkin - 09-03-2011, 04:20 PM
RE: Need some brief help. - by PurpelPumpkin - 09-03-2011, 11:32 PM
RE: Need some brief help. - by Selyp - 09-04-2011, 12:38 AM
RE: Need some brief help. - by PurpelPumpkin - 09-04-2011, 10:06 AM
RE: Need some brief help. - by PurpelPumpkin - 09-04-2011, 12:50 PM



Users browsing this thread: 2 Guest(s)