Skip to content

Commit

Permalink
Fix getBone not working (#2984)
Browse files Browse the repository at this point in the history
  • Loading branch information
Denneisk authored Jan 29, 2024
1 parent da33312 commit f34152e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/entities/gmod_wire_expression2/core/constraint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ e2function entity entity:parent()
return this:GetParent()
end

local getBone = E2Lib.getBone

--- Returns the '''bone''' <this> is parented to.
e2function bone entity:parentBone()
if not IsValid(this) then return nil end
Expand Down
2 changes: 2 additions & 0 deletions lua/entities/gmod_wire_expression2/core/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,8 @@ e2function vector entity:aimNormal()
return this:GetEyeTraceNoCursor().HitNormal
end

local getBone = E2Lib.getBone

--- Returns the bone the player is currently aiming at.
e2function bone entity:aimBone()
if not IsValid(this) then return self:throw("Invalid entity!", nil) end
Expand Down

0 comments on commit f34152e

Please sign in to comment.