Squirrel

From Liberty Unleashed Wiki
Jump to: navigation, search

Introduction

Squirrel is a high level imperative/OO programming language, designed to be a powerful scripting tool that fits in the size, memory bandwidth, and real-time requirements of applications like games. Squirrel is inspired by languages like Python, Javascript and especially Lua. Squirrel's syntax is similar to C/C++/Java etc. but the language has a very dynamic nature like Python/Lua.

Scripting in Liberty Unleashed uses a wide range of Squirrel's object-oriented features. Most internal data types have been exported to Squirrel via classes with their own methods and members which resemble the inner structures of LU and GTA. Events are the way LU discusses with scripts when something happens in the game. Many of these events can be manipulated using different return values.

All functions and events listed here will work with both Liberty Unleashed and Vice Unleashed unless stated otherwise. Some of them might require additional modules which are provided to you with the server package. Server-side scripting can be expanded further using the C/C++ module SDK and third party modules.

Resources

Server-side Scripting

Client-side Scripting

General


Other languages:English 100%
Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox