L
lmhrpr
Guest
I have a villager object which uses mp_potential_step() to navigate between objects (such as trees). When it reaches the tree in question, I use place_meeting() to change the villager's behaviour. In order to make this work, I have the villager set to solid and the trees not set to solid.
However, when path finding, the villager will walk through other trees because they're not solid. If I make the trees solid, or set the checkall flag in mp_potential_step() to true, the place_meeting() never returns true. The villager will approach the tree then just circle it forever (there are rare exceptions where place_meeting() does return true).
Why does place_meeting() not return true if the trees are solid? I have precise collision checking on everything.
However, when path finding, the villager will walk through other trees because they're not solid. If I make the trees solid, or set the checkall flag in mp_potential_step() to true, the place_meeting() never returns true. The villager will approach the tree then just circle it forever (there are rare exceptions where place_meeting() does return true).
Why does place_meeting() not return true if the trees are solid? I have precise collision checking on everything.