GetFunctionName

Kategorie: Script
Ab Engineversion: 9.0 OC

Beschreibung

Gets the plain name of a function, without the context information.

Syntax

string GetFunctionName(func call);

Parameter

call:
This is the function that provides its name.

Beispiel

  Format("%v", Rock.Hit) // Returns "Rock.Hit"
  GetFunctionName(Rock.Hit) // Returns "Hit"
  
  // Log all functions from an object or definition
  for (var property in GetProperties())
  {
    if (GetType(property) == C4V_Function)
    {
       Log("%v defines the function: %s", this, GetFunctionName(property))
    }
  }
        
Marky, 2019-04