Scripting/Squirrel/Client Events/Script::ScriptProcess
This wiki is using an old backup from 2020
Some information may be old/missing
This event is called on every script update.
Syntax
function Script::ScriptProcess()
Arguments
None.
Example
This message is in 3D in a map position
dx3DTextdrawPos <- GUI.WorldPosToScreen(Vector(497.132, -85.3217, 10.0307));
dxText <- null;
function Script::ScriptProcess() {
::dx3DTextdrawPos = GUI.WorldPosToScreen(Vector(497.132, -85.3217, 10.0307));
::dxText = GUILabel(VectorScreen(dx3DTextdrawPos.X, dx3DTextdrawPos.Y), Colour(255, 255, 0, 255), "Hello world");
::dxText.FontSize = 20;
}
Notes
This example sets the 3D position on every frame(?), quite inefficient. But there are few (none?) good use cases for this function.