I am trying to create my custom DamageType
base Blueprint to add a few utility functions that I could need for all the damage types in my game. So I created a Blueprint called MyDamageType
that inherits directly from DamageType
. The idea is that all further damage types inherit from it.
However, it seems that certain features are not available for custom damage type Blueprints:
- I cannot create any Macros in it.
- Local variables in any function seem to be automatically declared as constants. When I try to set one, the compiler throws me the error Cannot write to const.
I can’t see or find any reasons for this. Where do these limitations come from and is there a way around them?
I am using UnrealEngine 4.2.