Skip to content

Commit 2d85eff

Browse files
committed
add part lookup to proxy property function
1 parent dd3ae0d commit 2d85eff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lua/pac3/core/client/parts/proxy.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,14 @@ end
281281

282282
PART.Inputs = {}
283283

284-
PART.Inputs.property = function(self, property_name, field)
284+
PART.Inputs.property = function(self, property_name, field, uid)
285285

286286
local part = self.TargetEntity:IsValid() and self.TargetEntity or self:GetParent()
287+
if uid then
288+
part = self:GetOrFindCachedPart(uid)
289+
end
287290

288-
if part:IsValid() and part.GetProperty and property_name then
291+
if part and part:IsValid() and part.GetProperty and property_name then
289292
local v = part:GetProperty(property_name)
290293

291294
local T = type(v)

0 commit comments

Comments
 (0)