onClientRender

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events
LU Warning: This event is called every frame. It is not recommended to run any heavy code under this.


This event is called every frame.

Syntax

  1. function onClientRender()

Arguments

  • none

Example

This code will tell the player how many frames have been rendered since the scripts were loaded. It will also increase a counter that counts the number of frames.

  1.  
  2. local frames = 0;
  3. function onClientRender()
  4. {
  5. Message("Rendered " + ++frames + " frames so far.");
  6. }
  7.  

Notes

The function Message was used in this example. More information can be found in its corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox