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
Supported By
idWeapon
Comments
- The result of the trace can be saved using saveMeleeTrace.
Functionality
Performs a trace along the player's view axis, and returns whether it hit anything or not.