Hey,
I just want to mark a function as exec so I can write the function name in the console and have some code executing for testing purposes.
In UnrealScript you just wrote “exec function …”.
Now I understand I have to mark my function in the header via
UFUNCTION(exec)
So what I did was this:
- Header file:
UFUNCTION(exec)
void TestFunc(bool value);
- Main file:
void AShooterWeapon::TestFunc(bool value)
{
..do smth with "value"..
}
So the function “TestFunc” shows up in console but it says it cannot find the function… What am I missing?