Add new effect 'Disable Pedestrians'; update 'Back To Black' effect timing; enhance 'Annoying RC Vehicle' functionality
This commit is contained in:
@@ -33,8 +33,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.
|
||||
local pc_time = os.date("*t")
|
||||
SET_CLOCK_TIME(pc_time.hour, pc_time.min, pc_time.sec)
|
||||
SET_CLOCK_TIME(os.date("%H"), os.date("%M"), os.date("%S"))
|
||||
WAIT(500) -- Example: wait 500 ms between ticks, adjust as needed, also for performance
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user