Page 1 of 1
What does the blocker entity do?
Posted: Sat Oct 25, 2014 9:36 pm
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?
Re: What does the blocker entity do?
Posted: Sat Oct 25, 2014 10:07 pm
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

Re: What does the blocker entity do?
Posted: Sat Oct 25, 2014 10:11 pm
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.
Re: What does the blocker entity do?
Posted: Sat Oct 25, 2014 10:14 pm
by ScroLL
Thanks.

Re: What does the blocker entity do?
Posted: Sat Oct 25, 2014 10:22 pm
by Jouki
ah, Skuggasveinn is faster

Re: What does the blocker entity do?
Posted: Sun Oct 26, 2014 5:12 pm
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.
Re: What does the blocker entity do?
Posted: Tue Oct 28, 2014 3:03 am
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"
}
}
}