Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Verse
Summary
When an Explosive Device explodes, it pass an instigator to the damaged agent despite the documentation saying that the Explode function “Passes Agent as the instigator of the explosion.”
Steps to Reproduce
- Place an Creature Placer Device and prepare it to spawn from verse
- Place an Explosive Device and set it up so that the triggered explosion would do some damage to the enemy that spawns from the Creature Placer Device
- Place a Trigger Device that we will use to spawn a creature from the Creature Placer Device.
- Create a new verse script and a new creative_device.
- Create references to the creature placer, explosive device and trigger.
- Subscribe to the Trigger’s TriggeredEvent with a function that Spawns a creature from the Creature Placer.
- Subscribe to the SpawnedEvent of the creature placer with a function that gets the FortCharacter from the newly spawned agent and subscribe to its DamagedEvent with a function that prints something when it’s triggered, that then gets the damage_result instigator and prints something when the instigator is valid (or when it’s not valid).
- Start a match, trigger the trigger to spawn a creature and then Explode the Explosive device with the player character (by shooting it or touching it).
- Notice that even though the creature does receive damage, the damage_result instigator is empty.
Expected Result
When a damageable receives damage from an Explosive Device the resulting damage_result of the DamagedEvent has an instigator that is the Agent that triggered the Explosive Device.
Observed Result
When a damageable receives damage from an Explosive Device the resulting damage_result of the DamagedEvent does NOT contain an instigator and returns false instead
Platform(s)
All
Additional Notes
Note 1: Shooting the Explosive Device has the same result and also does not cause it to return an Instigator.
Note 2: It appears that this is also the cause for the damage_result’s source, which I would have expected to be the explosive device, but is instead empty.