mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-30 21:23:00 +00:00 
			
		
		
		
	Some event typo fixes
This commit is contained in:
		| @@ -10,12 +10,12 @@ The @{timer} event is fired when a timer started with @{os.startTimer} completes | ||||
| 2. @{number}: The ID of the timer that finished. | ||||
| 
 | ||||
| ## Example | ||||
| Starts a timer and then prints its ID: | ||||
| Start and wait for a timer to finish. | ||||
| ```lua | ||||
| local timerID = os.startTimer(2) | ||||
| local timer_id = os.startTimer(2) | ||||
| local event, id | ||||
| repeat | ||||
|     event, id = os.pullEvent("timer") | ||||
| until id == timerID | ||||
| until id == timer_id | ||||
| print("Timer with ID " .. id .. " was fired") | ||||
| ``` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonathan Coates
					Jonathan Coates