ScriptEvent:melee

From Mod Wiki

Parameters

integer mask -- Collision mask to use.
float distance -- Distance to trace along the axis.
boolean ignoreOwner -- Whether to ignore the player in the trace or not.
boolean antiLag -- Whether the trace should use antilag information or not.

Result

boolean

Supported By

idWeapon

Comments

Functionality

Performs a trace along the player's view axis, and returns whether it hit anything or not.