What does the blocker entity do?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

What does the blocker entity do?

Post by ScroLL »

What's up with the blocker entity? It doesn't seem to block the party from walking on that tile. What do I need to prevent a party from walking on a tile, but still allow thrown objects/spells to pass through?
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: What does the blocker entity do?

Post by Skuggasveinn »

block entity is for blocking monster movements.
Invisible Wall blocks the party, but it also blocks projectiles.

if you wan't to block the party but allow projectiles just find some entity like swamp_dead_tree and then disable model (makes it invisible) and disable projectiecollider (allows projectiles to pass) but leave obstacle (or else the party will pass)
easy :D
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: What does the blocker entity do?

Post by Skuggasveinn »

ahh small problem, swamp_dead_tree shows up on the minimap as tree, so use instead beach_thicket , that one doesn't have a minimap gfx.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

Re: What does the blocker entity do?

Post by ScroLL »

Thanks. :)
User avatar
Jouki
Posts: 127
Joined: Fri Oct 24, 2014 12:57 pm

Re: What does the blocker entity do?

Post by Jouki »

ah, Skuggasveinn is faster :P
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

Re: What does the blocker entity do?

Post by ScroLL »

Funny thing I noticed about the beach thicket. If you swing at it, the thicket suddenly becomes visible and has health and is destructable. Even if you disable health and the model.

Seems like we might need to define a custom blocker entity so that we have a minified 1x1 obstacle with no model, no gfx, no projectile collider, and no health.
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

Re: What does the blocker entity do?

Post by ScroLL »

I just defined this object to block monsters and the party, but to let objects and spells through:

Code: Select all

defineObject{
   name = "party_blocker",
   baseObject = "blocker",
   components = {
      {
         class = "Obstacle"
      }
   }
}
Post Reply