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
Block enemy's, how?
DarkEagle Offline
Junior Member

Posts: 15
Threads: 3
Joined: Jun 2011
Reputation: 0
#1
Information  Block enemy's, how?

Okay, because i'm making a custom story.. I need to ask some question...

In this post i need to ask?

How to block enemy's so they can't that way i want ...

I mean, like a waterlurker doesn't go the stair's up?

Any idea's please post. Thank you...

P.S.: I tryed with the blockbox, but the box block's me too..

Confused

Some time's people aren't people!
In Developement:Dark Path 13%
06-11-2011, 02:15 PM
Find
WatzUpzPeepz Offline
Member

Posts: 106
Threads: 12
Joined: May 2011
Reputation: 0
#2
RE: Block enemy's, how?

I dont know what you mean but I think you want path nodes.

06-11-2011, 02:30 PM
Find
DarkEagle Offline
Junior Member

Posts: 15
Threads: 3
Joined: Jun 2011
Reputation: 0
#3
RE: Block enemy's, how?

(06-11-2011, 02:30 PM)WatzUpzPeepz Wrote: I dont know what you mean but I think you want path nodes.

No,no i want to make like. The enemy cant go through the door because i put there an area which blocks the enemy.

Some time's people aren't people!
In Developement:Dark Path 13%
06-11-2011, 02:32 PM
Find
WatzUpzPeepz Offline
Member

Posts: 106
Threads: 12
Joined: May 2011
Reputation: 0
#4
RE: Block enemy's, how?

In that case I dont know.

06-11-2011, 03:13 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#5
RE: Block enemy's, how?

Try block boxes. Under entities > technical. If the regular block boxes won't work, try the block_box_nonchar ones. If this causes issues with the player being unable to pass, create a callback that activates the block box once the player passes it, so the monster won't be able to follow the player. You can also script it both ways so the box deactivates if the player wants to go back towards the monster area.

A lot of game functionality will need scripting anyways so. Good luck Smile

(This post was last modified: 06-11-2011, 03:39 PM by palistov.)
06-11-2011, 03:36 PM
Find
DarkEagle Offline
Junior Member

Posts: 15
Threads: 3
Joined: Jun 2011
Reputation: 0
#6
RE: Block enemy's, how?

(06-11-2011, 03:36 PM)palistov Wrote: Try block boxes. Under entities > technical. If the regular block boxes won't work, try the block_box_nonchar ones. If this causes issues with the player being unable to pass, create a callback that activates the block box once the player passes it, so the monster won't be able to follow the player. You can also script it both ways so the box deactivates if the player wants to go back towards the monster area.

A lot of game functionality will need scripting anyways so. Good luck Smile

Okay, thanks i have an really nice idea.. Thank you again.. Smile hehe

Some time's people aren't people!
In Developement:Dark Path 13%
06-11-2011, 04:51 PM
Find
X4anco Offline
Member

Posts: 157
Threads: 66
Joined: Apr 2011
Reputation: 0
#7
RE: Block enemy's, how?

I would use
SetEnemyDisableTriggers(string& asName, bool abX);
this stops all enemy activity and it'll just stand there. Use it with
a area collide with your monster.

E.g.
AddEntityCollideCallback("monstername", "ScriptArea", "yourfunc", true, 1);
void yourfunc (string &in asParent, string &in asChild, int alState)
{
    SetEnemyDisableTriggers("monstername", true);
}

...
06-11-2011, 05:57 PM
Find
WatzUpzPeepz Offline
Member

Posts: 106
Threads: 12
Joined: May 2011
Reputation: 0
#8
RE: Block enemy's, how?

DarkEagle use X4anco's method it wont look wierd because using blockboxes will make the monster still run at you even if its not moving.

06-11-2011, 06:27 PM
Find
DarkEagle Offline
Junior Member

Posts: 15
Threads: 3
Joined: Jun 2011
Reputation: 0
#9
RE: Block enemy's, how?

(06-11-2011, 06:27 PM)WatzUpzPeepz Wrote: DarkEagle use X4anco's method it wont look wierd because using blockboxes will make the monster still run at you even if its not moving.

Thank you, i will use it for my mod... But by now i use my nice idea... Because when the monster tryies to catch he can't... He can't go up! That mean's i'm stopping him somehow... By the way:
Thank you all for the help... This is really a nice community. Thank you all again.. Angel Smile

Have a nice day.. Smile

Some time's people aren't people!
In Developement:Dark Path 13%
06-15-2011, 08:12 PM
Find




Users browsing this thread: 2 Guest(s)