mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
Merge pull request #1322 from iNV3RT3D/e2-world-fix
Added ability for pacSetKeyValue() E2 function to work on parts with group owner name set to world.
This commit is contained in:
commit
116adbcdff
@ -8,6 +8,8 @@ end)
|
||||
|
||||
local function SetKeyValue(ply, ent, unique_id, key, val)
|
||||
local set = "Set" .. key
|
||||
|
||||
if ent == game.GetWorld() then ent = pac.WorldEntity end
|
||||
|
||||
local part = pac.GetPartFromUniqueID(pac.Hash(ply), unique_id)
|
||||
if not IsValid( part ) then return end
|
||||
|
Loading…
Reference in New Issue
Block a user