Index

:!: Available in version 1.3 and later.

MSG_PreUpdate

Description

“MSG_PreUpdate” is a message that is automatically sent by the game before all of the units are updated. It is sent even when the game is paused.

The frame advance process is as followed:

Loop 1, 2, or 4 times based on speed:
{
  PreUpdate
  Units
  PostUpdate
  return to top of loop
}
FrameAdvance
If high FPS is on, run FrameAdvance again for the interpolation frame
Start next update


Examples

:PreUpdate
   trace("Pre")
 
:Once
   RegisterForMSG("MSG_PreUpdate" "PreUpdate")

Index