OnProcess: Difference between revisions

Jump to navigation Jump to search
287 bytes added ,  26 February 2024
no edit summary
No edit summary
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = onProcess
|side = shared
|type = event
|type = event
|name = onProcess
|games = iii vc sa iv
|usage = each processing occurrence occurs
|desc = each processing cycle occurs (sometimes referred to as tick or pulse).
|callbackParameters = Event event, int deltaTime
|arg1 = float deltaTime The delta time for this processing cycle, in seconds. 1.0 = 1 second.
|cancellable = false
|cancel = false
|parameter1 = int deltaTime The delta time for this processing cycle.
|note1 = The delta time is the duration between the current and previous event triggers, in seconds.
|note2 = For the first occurrence of this event triggering, the delta time is the duration between resource initialization and the first processing cycle event.
|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)
}}
}}
6,834

edits

Navigation menu