Skip to content

Helpers

lnx00 edited this page Jun 6, 2023 · 4 revisions

lnxLib.TF2.Helpers

Various utilities to do what the Lmaobox API doesn't.

Functions

  • .WalkTo(userCmd, localPlayer, destination) Walks to the given destination. You need to call this during CreateMove until you reached the destination.
  • .CanShoot(weapon) Returns if the weapon can shoot right now.
  • .VisPos(target, from, to) Returns if the player is visible.
  • .GetBBox(player) Returns the bounding box of the given WPlayer as a table {x, y, w, h}.
Clone this wiki locally