I am considering creating different events for each weapon that the player uses.
(Executing event A when using weapon A, executing event B when using weapon B, and so on.)
(I would like to execute events that deal damage, etc., to change the strength of the weapon.)
I am struggling to obtain the type of the currently equipped weapon, as players can possess multiple weapons.
Is it possible to use UEFN or similar methods to retrieve information about the weapon currently equipped by the player?
Implementation:
- As one implementation method, I am considering using an āifā statement based on the value of DamageAmount in the DamageEvent to infer the weapon being used from the damage amount.
- For example, is it possible to obtain information about the weapon from the arguments of DamageEvent? It would be best if I could obtain the weaponās class, but at the very least, being able to get information such as the weaponās rarity or the type of ammunition used would allow me to predict the used weapon and write the desired processing.
- As another implementation method, is it possible to change the damage amount of the corresponding weapon by registering the weapon in a class manager?
Are there any features that allow me to write code to change the damage amount of a weapon, using other implementation methods?