When a bot gets damaged, the damage result Instigator is an agent which I think it shouldn’t be? If I’m not wrong if they get damaged by the storm the instigator is themselves
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
AI
Steps to Reproduce
Create a storm
Create an NPC
Subscribe to Fort.DamagedEvent(), Fort.DamagedShieldEvent(), Check for the Instigator and log if(Instigator.GetInstigatorAgent)
Wait for an npc to go in the storm
you’ll see that the log will be the if condition
Guards ARE agents. As you can see the devices when an NPC is spawned they give you that Agent, maybe you could try making an “NPC” agent array to filter in your DamagedEvent or just do player[agent] in an if condition to make sure they are a player.
yeah this is what I’m doing but still, taking damage from a storm shouldn’t return an Agent imo. Doing Result.Instigator.GetInstigatorAgent shouldn’t return an agent, to me it’s wrong
Oh yea I suppose, same goes for damage dealt by
.Damage() if you don’t care about self inflicted damage just end the function if the target is the same as the instigator