mirror of
https://github.com/wiremod/wire.git
synced 2025-03-04 03:03:04 -05:00
Fix getBone not working (#2984)
This commit is contained in:
parent
da33312808
commit
f34152eb63
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user