OnProcess: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = onProcess | ||
|side = shared | |||
|type = event | |type = event | ||
| | |games = iii vc sa iv | ||
| | |desc = each processing occurrence occurs | ||
| | |arg1 = int deltaTime The delta time for this processing cycle. | ||
|cancel = false | |||
|exampleLua = addEventHandler("OnProcess", function(event,deltaTime) | |exampleLua = addEventHandler("OnProcess", function(event,deltaTime) | ||
message("Process event occurred.", COLOUR_RED) | message("Process event occurred.", COLOUR_RED) | ||
end) | end) | ||
}} | }} | ||
Revision as of 20:28, 19 November 2022
Event Server and Client
![]()
Online and Offline Not Cancellable
Available since Server 1.0.0, Client 1.0.0
onProcess(Event event, int deltaTime)
The onProcess event is invoked when each processing occurrence occurs.
Parameters
| 1) | Event | event | The event object for this event. |
| 2) | int | deltaTime | The delta time for this processing cycle. |
Attributes
| const | This event cannot be cancelled. |
Notes
There aren't any notes for this event.
Examples
Example 1 - Lua:
addEventHandler("OnProcess", function(event,deltaTime)
message("Process event occurred.", COLOUR_RED)
end)
Compatibility
There isn't any compatibility information for this event.