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
Level Editor Help Monster Path Help
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#21
RE: Monster Path Help

(01-11-2012, 10:45 PM)Statyk Wrote: Tip. Go into the level editor and to the enemy. go to it's "Entity" tab and make sure "DisableTriggers" is CHECKED. He will not go after the player or react to sounds n matter what.
That's something that I needed to know, thank you. But will he react to me entering an area? so that after I trigger the function, I can watch him?



Its hard to see the truth when you've been blinded by lies.
01-11-2012, 10:48 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#22
RE: Monster Path Help

(01-11-2012, 10:48 PM)eagledude4 Wrote:
(01-11-2012, 10:45 PM)Statyk Wrote: Tip. Go into the level editor and to the enemy. go to it's "Entity" tab and make sure "DisableTriggers" is CHECKED. He will not go after the player or react to sounds n matter what.
That's something that I needed to know, thank you. But will he react to me entering an area? so that after I trigger the function, I can watch him?
No. As long as an enemy has the "DisableTriggers" activated, he will ignore the player forever, even if you throw things at him.
01-11-2012, 10:52 PM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#23
RE: Monster Path Help

(01-11-2012, 10:45 PM)Statyk Wrote: No. As long as an enemy has the "DisableTriggers" activated, he will ignore the player forever, even if you throw things at him.

What I meant was, will he ignore script functions TRIGGERED by the player, not the player itself.

Edit: I just watched him walk the path without entering one of the areas. he seems to walk wherever he wants to. The code is like this:

AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");

those are the path nodes he's supposed to walk before the player enters an area. But then he continues down one of the hallways. then repeats it in a loop.



Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-11-2012, 10:57 PM by eagledude4.)
01-11-2012, 10:53 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#24
RE: Monster Path Help

(01-11-2012, 10:53 PM)eagledude4 Wrote:
(01-11-2012, 10:45 PM)Statyk Wrote: No. As long as an enemy has the "DisableTriggers" activated, he will ignore the player forever, even if you throw things at him.

What I meant was, will he ignore script functions TRIGGERED by the player, not the player itself.

Edit: I just watched him walk the path without entering one of the areas. he seems to walk wherever he wants to. The code is like this:

AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");

those are the path nodes he's supposed to walk before the player enters an area. But then he continues down one of the hallways. then repeats it in a loop.
Is he colliding into areas that are telling him to follow other nodes? or are the nodes in the script placed incorrectly?
01-11-2012, 11:11 PM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#25
RE: Monster Path Help

I don't believe so. I used this image to place my nodes:
http://img192.imageshack.us/img192/8740/pic3ms.jpg

1 & 5 are the nodes in the purple area, 1 being the bottom, 5 being the top. He then proceeds down the left hallway when nothing in the script tells him to do so unless the room on the left is entered (which I didn't).


Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-11-2012, 11:14 PM by eagledude4.)
01-11-2012, 11:13 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#26
RE: Monster Path Help

void EnteredEnemyTriggerArea(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_5", 0, "");
if (asChild == "SonRoomArea") {
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 8, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
} else if (asChild == "DadRoomArea") {
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_24", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_27", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_30", 8, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_27", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_24", 0, "");
}
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_31", 0, "");

}




Is the bold area screwing it up?
01-11-2012, 11:17 PM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#27
RE: Monster Path Help

That's probably the reason, but those path nodes aren't on the path it seems to be following. I've changed the code to this:
void EnteredEnemyTriggerArea(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_5", 0, "");
    if (asChild == "SonRoomArea") {
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 8, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_31", 0, "");
    } else if (asChild == "DadRoomArea") {
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_24", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_27", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_30", 8, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_27", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_24", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_31", 0, "");
    }
}

EDIT: okay, so now he doesn't go down the hallway he did before, but he seems to be going back and forth between 1 and 5. I tried entering one of the areas, but he didn't respond to that.

Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-11-2012, 11:29 PM by eagledude4.)
01-11-2012, 11:20 PM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#28
RE: Monster Path Help

still need help.

Its hard to see the truth when you've been blinded by lies.
01-16-2012, 11:29 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#29
RE: Monster Path Help

I honestly have no idea what else to tell you. Try troubleshooting. I'm not sure if you mess with it when we're not responding but please do. Start basic and work up. Maybe you jumped too far into the level of scripting than you were capable of...
01-17-2012, 12:00 AM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#30
RE: Monster Path Help

Now the grunt's getting stuck on the stairs >.> He doesn't even walk straight, he just starts veering off to the left and walking into the wall between 32 and 56. I placed some pathnodes on the stairs to stop this from happening, but he's ignoring them completely.

[Image: pic.png]
void EnteredEnemyTriggerArea(string &in asParent, string &in asChild, int alState) {
    SetEntityActive("servant_grunt_1", true);
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_32", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_56", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
}

Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-17-2012, 01:13 AM by eagledude4.)
01-17-2012, 12:25 AM
Find




Users browsing this thread: 1 Guest(s)