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:
- Main file:
So the function "TestFunc" shows up in console but it says it cannot find the function... What am I missing?
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:
Code:
UFUNCTION(exec) void TestFunc(bool value);
Code:
void AShooterWeapon::TestFunc(bool value) { ..do smth with "value".. }
Comment