How do I destroy object when monster can't find path

Get help using Construct 2

Post » Sat Jan 23, 2016 8:50 pm

I have Monsters that are using pathfinding behavior. I want to destroy object when monsters can't find any path.
I know which object to destroy, but the thing is that pathfinding "failed to find path" condition runs forever, so even if monster find path it destroy the object.
Any idea for how to fix it or any other approach
B
7
Posts: 21
Reputation: 325

Post » Sat Jan 23, 2016 8:52 pm

Add another condition to the "failed to find path" event?
Maybe a boolean, set on a timer or a wait for signal?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sun Jan 24, 2016 6:15 am

@LittleStain I did that and it didn't work, it is still running forever even if monsters find paths
NB in my code I spawn monster every second

check screenshot of the code
"https://drive.google.com/open?id=0B1pGW-xaP8VfM1hNZTFEeTgzd0U"
B
7
Posts: 21
Reputation: 325


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 23 guests