Exec function name

Hello
Is there any way to change the name of an exec function?
I want to make a “/kill” command what can be called from console, but “Kill” function name is already taken and used at several places. Would not want to change that just for a name.

So I made a function:
UFUNCTION( Exec, Category = CommandLine )
void CommandKill();

I would like still it to be called by typing “/kill”. DisplayName and meta=(ScriptName=“kill”) did not do anything

Only certain classes can support console commands, most notably:

  1. Pawns
  2. Player Controllers
  3. Cheat Managers
  4. GameModes
  5. PlayerInput
  6. HUD

If you declared the function in any of the above class (and you have a valid class active), you can call it using the following syntax from the console window:

CommandKill()

Exactly what I don’t want.
I want to call it as “/kill” without changing the name of the function