Add wait duration to OnTick function for performance optimization
This commit is contained in:
@@ -32,6 +32,7 @@ end
|
||||
-- Called every game tick while the effect is active
|
||||
function OnTick()
|
||||
-- Keep this lightweight. Use this for per-frame checks or gradual changes.
|
||||
WAIT(500) -- Example: wait 500 ms between ticks, adjust as needed, also for performance
|
||||
end
|
||||
|
||||
-- Add custom helper functions below.
|
||||
|
||||
Reference in New Issue
Block a user