Difference between revisions of "Angelscript"
Jump to navigation
Jump to search
Outerbeast (talk | contribs) m (→API Features) |
Outerbeast (talk | contribs) m (→API Features) |
||
Line 69: | Line 69: | ||
| style="vertical-align:middle; " | Covers the use of the scheduler. | | style="vertical-align:middle; " | Covers the use of the scheduler. | ||
|- | |- | ||
− | | style="text-decoration:underline; " | [[ | + | | style="text-decoration:underline; " | [[HUD]] |
− | | style="vertical-align:middle; " | Covers the usage of | + | | style="vertical-align:middle; " | Covers the usage of various HUD elements |
|- | |- | ||
| style="text-decoration:underline; " | [[Temporary Entities]] | | style="text-decoration:underline; " | [[Temporary Entities]] | ||
| style="vertical-align:middle; " | Covers the use of temporary entities. | | style="vertical-align:middle; " | Covers the use of temporary entities. | ||
+ | |- | ||
+ | | style="text-decoration:underline; " | [[File System]] | ||
+ | | style="vertical-align:middle; " | Covers the use of the file system | ||
|- | |- | ||
| style="text-decoration:underline; " | [[trigger_script]] | | style="text-decoration:underline; " | [[trigger_script]] | ||
Line 83: | Line 86: | ||
| style="text-decoration:underline; " | [[ondestroyfn]] | | style="text-decoration:underline; " | [[ondestroyfn]] | ||
| style="vertical-align:middle; " | Describes the usage of the "ondestroyfn" function | | style="vertical-align:middle; " | Describes the usage of the "ondestroyfn" function | ||
− | |||
− | |||
− | |||
|} | |} | ||
Revision as of 15:01, 17 February 2025
This page contains basic coverage and tutorials for Sven Co-op's Angelscript API.
API auto-generated documentation is available here. For information on the AngelScript language, visit the official AngelScript manual here
1 Getting Started
Tutorials | Basics of building scripts |
---|---|
Running Scripts | Covers how to import and execute script files, such as map scripts and plugins |
Typecasting | Covers how and when to use typecasts |
Debugging | Debugging scripts |
Entity Basics | Covers the basics of what entities are and how to use them. |
Entity Intermediate | Covers intermediate topics regarding entities. |
Custom Entities | Build your own custom entity |
2 API Features
API Features | Covers some fundamental aspects of writing scripts for Sven Co-op |
---|---|
Global Functions | Global Functions available for use. |
Entity Functions | How to use the various entity functions. |
Player Functions | Various player related functions |
Sound System | How to use the sound system. |
Engine Functions | How to use engine functions. |
Custom Keyvalues | Covers the usage of custom keyvalues in scripts. |
CEngine | Covers the CEngine class. This class includes the current time and frametime, as well as engine configuration and the global trace. |
CGame | Contains methods integral to the game's operation. |
Tracing | Covers performing traces and usage of the TraceResult class, as well as related enumerations. |
Utility Functions | Covers various utility methods |
Hooks | Covers the purpose and use of hooks. |
Scheduler | Covers the use of the scheduler. |
HUD | Covers the usage of various HUD elements |
Temporary Entities | Covers the use of temporary entities. |
File System | Covers the use of the file system |
trigger_script | Build a trigger_script entity function |
squadmaker function | Describes the usage of the squadmaker entity to call script functions. |
ondestroyfn | Describes the usage of the "ondestroyfn" function |
3 Data Types
Data Types | Covers some common data types used in scripts |
---|---|
Strings | Covers the basics of strings in scripts |
Vectors | Covers the basics of Vectors in scripts |
RGBA | Covers the basics of the RGBA structure |
EHandle | Covers the usage of EHandle for storing entity handles |
CCVar | Covers how to create and use custom CVars |
4 Miscellaneous
Page | Description |
---|---|
Animation Extensions | Animation Extensions used by weapons for player models. |
Default Ammo Types | Default Ammo Types used by the game. |