mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
maybe fix command events
This commit is contained in:
parent
0ad279ee9e
commit
6125b77229
@ -35,7 +35,9 @@ BUILDER:StartStorableVars()
|
||||
BUILDER:EndStorableVars()
|
||||
|
||||
function PART:SetEvent(event)
|
||||
local reset = self.Event and self.Event ~= "" and self.Event ~= event
|
||||
local reset = (self.Arguments == "") or
|
||||
(self.Arguments ~= "" and self.Event ~= "" and self.Event ~= event)
|
||||
|
||||
self.Event = event
|
||||
self:SetWarning()
|
||||
self:GetDynamicProperties(reset)
|
||||
@ -827,6 +829,8 @@ PART.OldEvents = {
|
||||
{default = false, group = "event wheel", editor_friendly = "HideInEventWheel"}
|
||||
},
|
||||
nice = function(self, ent, find, time)
|
||||
find = find or "?"
|
||||
time = time or "?"
|
||||
return "command: " .. find .. " | " .. "duration: " .. time
|
||||
end,
|
||||
callback = function(self, ent, find, time)
|
||||
|
Loading…
Reference in New Issue
Block a user