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.
PurpelPumpkin Offline
Junior Member

Posts: 5
Threads: 1
Joined: Sep 2011
Reputation: 0
#6
RE: Need some brief help.

(09-04-2011, 12:38 AM)Selyp Wrote: 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
}

Oh, ok great thanks! Big Grin Although, I have a final request since I'm a noob that's just starting with this kind of thing, is if anyone would want or is able to help while I'm doing it, here's my skype: upp.ner


Okay, I've changed my mind, I want this to happen, you pick up lantern and that makes the door slam shut, and then the next time you touch the door a monster spawns, anyone that can help me?

(This post was last modified: 09-04-2011, 10:27 AM by PurpelPumpkin.)
09-04-2011, 10:06 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: 1 Guest(s)