ScriptEvent:getMeleeBody

From Mod Wiki

Parameters

None.

Result

string

Supported By

idWeapon

Comments

  • Use melee to perform a melee trace.
  • If no collision occured, this data is invalid.
  • If the surface hit does not belong to an articulated figure, the result will be an empty string.

Functionality

Returns the name of the body associated with the surface hit by the last melee trace.