cicatrization process

This commit is contained in:
ZioPao
2023-11-16 12:50:07 +01:00
parent c09c3ac646
commit 34570cd013
7 changed files with 114 additions and 18 deletions

View File

@@ -7,4 +7,12 @@ function CommonMethods.GetSide(name)
if string.find(name, "_L") then return "L" else return "R" end
end
---Stops and start an event, making sure that we don't stack them up
---@param event string
---@param method function
function CommonMethods.SafeStartEvent(event, method)
Events[event].Remove(method)
Events[event].Add(method)
end
return CommonMethods