Ignoring Dead Enemies


#1

Dead enemies aren’t worth stressing about, don’t let them get under your skin. :slight_smile:
Any questions or comments about this lecture?


#2

Interesting choice to add another method for this issue, Did you guys consider just setting the collider.enabled to false? Can do the same with the NavMeshAgent and then you can just walk on the dead body :stuck_out_tongue: but atleast without the collider you cant raycast it.


#3

Yep, we considered that. We like the realism of needing to walk around the bodies and not clipping straight through them. Also, we need some way of being able to click on them to get loot.


#4

After toying with that simple fix a bit, I decided on pretty much the same conclusion. My thought process was like, well I could make a vanish in X amount of seconds method and then spawn in a loot bag…but that just kept going down the rabbit hole, I settled on the CanAttack() as well.


#5

Cool. And yeah, depends a lot on what behaviour you want. We want our enemies to stick around and be on the ground even if we go off to another level and come back… kinda grim but I think makes for a more entertaining journey if we have the player coming and going through the same areas.


#6

Needs more blood particle effects! Lol, anyhow awesome I am enjoying the remake so sally fourth and carry on Sir Peasant of Knights!