Difference between revisions of "Angelscript"
Jump to navigation
Jump to search
Outerbeast (talk | contribs) (WIP) |
Outerbeast (talk | contribs) m |
||
| Line 4: | Line 4: | ||
For information on the AngelScript language, visit the [https://www.angelcode.com/angelscript/sdk/docs/manual/doc_script.html official AngelScript manual here] | For information on the AngelScript language, visit the [https://www.angelcode.com/angelscript/sdk/docs/manual/doc_script.html official AngelScript manual here] | ||
| − | {| class="wikitable" | + | {| class="wikitable" |
| + | |- | ||
| + | ! style="text-decoration:underline;" | Tutorials | ||
| + | ! style="vertical-align:middle;" | Basics of building scripts | ||
| + | |- | ||
| + | | style="text-decoration:underline; " | [[Running Scripts]] | ||
| + | | style="vertical-align:middle; " | Covers how to import and execute script files, such as map scripts and plugins | ||
|- | |- | ||
| − | + | | style="text-decoration:underline; " | [[Typecasting]] | |
| − | + | | style="vertical-align:middle; " | Covers how and when to use typecasts | |
|- | |- | ||
| − | | style="text-decoration:underline;" | | + | | style="text-decoration:underline; " | [[Debugging]] |
| − | | style="vertical-align:middle;" | | + | | style="vertical-align:middle; " | Debugging scripts |
|- | |- | ||
| − | | style="text-decoration:underline;" | | + | | style="text-decoration:underline; " | [[trigger_script]] |
| − | | style="vertical-align:middle;" | | + | | style="vertical-align:middle; " | Build a trigger_script entity function |
|- | |- | ||
| − | | style="text-decoration:underline;" | | + | | style="text-decoration:underline; " | [[squadmaker function]] |
| − | | style="vertical-align:middle;" | | + | | style="vertical-align:middle; " | Describes the usage of the squadmaker entity to call script functions. |
|- | |- | ||
| − | | style="text-decoration:underline;" | | + | | style="text-decoration:underline; " | [[ondestroyfn]] |
| − | | style="vertical-align:middle;" | | + | | style="vertical-align:middle; " | Describes the usage of the "ondestroyfn" function |
|- | |- | ||
| + | | style="text-decoration:underline; " | [[Custom Entities]] | ||
| + | | style="vertical-align:middle; " | Build your own custom entity | ||
|} | |} | ||
| Line 28: | Line 36: | ||
! style="vertical-align:middle;" | Covers some fundamental aspects of writing scripts for Sven Co-op | ! style="vertical-align:middle;" | Covers some fundamental aspects of writing scripts for Sven Co-op | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Global Functions | + | | style="text-decoration:underline; " | [[Global Functions]] |
| style="vertical-align:middle; " | Global Functions available for use. | | style="vertical-align:middle; " | Global Functions available for use. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Entity Basics | + | | style="text-decoration:underline; " | [[Entity Basics]] |
| style="vertical-align:middle; " | Covers the basics of what entities are and how to use them. | | style="vertical-align:middle; " | Covers the basics of what entities are and how to use them. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Entity Intermediate | + | | style="text-decoration:underline; " | [[Entity Intermediate]] |
| style="vertical-align:middle; " | Covers intermediate topics regarding entities. | | style="vertical-align:middle; " | Covers intermediate topics regarding entities. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Entity Functions | + | | style="text-decoration:underline; " | [[Entity Functions]] |
| style="vertical-align:middle; " | How to use the various entity functions. | | style="vertical-align:middle; " | How to use the various entity functions. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Player | + | | style="text-decoration:underline; " | [[Player]] |
| style="vertical-align:middle; " | Various player related functions | | style="vertical-align:middle; " | Various player related functions | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Sound System | + | | style="text-decoration:underline; " | [[Sound System]] |
| style="vertical-align:middle; " | How to use the sound system. | | style="vertical-align:middle; " | How to use the sound system. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Engine Functions | + | | style="text-decoration:underline; " | [[Engine Functions]] |
| style="vertical-align:middle; " | How to use engine functions. | | style="vertical-align:middle; " | How to use engine functions. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Scheduler | + | | style="text-decoration:underline; " | [[Scheduler]] |
| style="vertical-align:middle; " | Covers the use of the scheduler. | | style="vertical-align:middle; " | Covers the use of the scheduler. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Custom Keyvalues | + | | style="text-decoration:underline; " | [[Custom Keyvalues]] |
| style="vertical-align:middle; " | Covers the usage of custom keyvalues in scripts. | | style="vertical-align:middle; " | Covers the usage of custom keyvalues in scripts. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | CEngine | + | | style="text-decoration:underline; " | [[CEngine]] |
| style="vertical-align:middle; " | Covers the CEngine class. This class includes the current time and frametime, as well as engine configuration and the global trace. | | style="vertical-align:middle; " | Covers the CEngine class. This class includes the current time and frametime, as well as engine configuration and the global trace. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | CGame | + | | style="text-decoration:underline; " | [[CGame]] |
| style="vertical-align:middle; " | Contains methods integral to the game's operation. | | style="vertical-align:middle; " | Contains methods integral to the game's operation. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Tracelines | + | | style="text-decoration:underline; " | [[Tracelines]] |
| style="vertical-align:middle; " | Covers tracelines and the TraceResult class, as well as related enumerations. | | style="vertical-align:middle; " | Covers tracelines and the TraceResult class, as well as related enumerations. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | Hooks | + | | style="text-decoration:underline; " | [[Hooks]] |
| style="vertical-align:middle; " | Covers the purpose and use of hooks. | | style="vertical-align:middle; " | Covers the purpose and use of hooks. | ||
|- | |- | ||
| − | | style="text-decoration:underline; " | ConCommandSystem | + | | style="text-decoration:underline; " | [[ConCommandSystem]] |
| style="vertical-align:middle; " | Covers the console command system. This is used to add console commands and variables. | | style="vertical-align:middle; " | Covers the console command system. This is used to add console commands and variables. | ||
|- | |- | ||
| − | | 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; " | Animation Extensions | + | | style="text-decoration:underline; " | [[Animation Extensions]] |
| style="vertical-align:middle; " | Animation Extensions used by weapons for player models. | | style="vertical-align:middle; " | Animation Extensions used by weapons for player models. | ||
|} | |} | ||
| − | {| class="wikitable" | + | {| class="wikitable" |
| + | |- | ||
| + | ! style="text-decoration:underline;" | Data Types | ||
| + | ! style="vertical-align:middle;" | Covers some common data typed used in scripts | ||
| + | |- | ||
| + | | style="text-decoration:underline;" | [[Strings]] | ||
| + | | style="vertical-align:middle;" | Covers the basics of strings in scripts | ||
| + | |- | ||
| + | | style="text-decoration:underline;" | [[Vectors]] | ||
| + | | style="vertical-align:middle;" | Covers the basics of Vectors in scripts | ||
| + | |- | ||
| + | | style="text-decoration:underline;" | [[RGBA]] | ||
| + | | style="vertical-align:middle;" | Covers the basics of the RGBA structure | ||
|- | |- | ||
| − | + | | style="text-decoration:underline;" | [[EHandle]] | |
| − | + | | style="vertical-align:middle;" | Covers the usage of EHandle for storing entity handles | |
|- | |- | ||
| − | |||
| − | |||
|} | |} | ||
Revision as of 17:17, 13 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
| 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 |
| 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 |
| Custom Entities | Build your own custom entity |
| API Features | Covers some fundamental aspects of writing scripts for Sven Co-op |
|---|---|
| Global Functions | Global Functions available for use. |
| Entity Basics | Covers the basics of what entities are and how to use them. |
| Entity Intermediate | Covers intermediate topics regarding entities. |
| Entity Functions | How to use the various entity functions. |
| Player | Various player related functions |
| Sound System | How to use the sound system. |
| Engine Functions | How to use engine functions. |
| Scheduler | Covers the use of the scheduler. |
| 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. |
| Tracelines | Covers tracelines and the TraceResult class, as well as related enumerations. |
| Hooks | Covers the purpose and use of hooks. |
| ConCommandSystem | Covers the console command system. This is used to add console commands and variables. |
| Temporary Entities | Covers the use of temporary entities. |
| Animation Extensions | Animation Extensions used by weapons for player models. |
| Data Types | Covers some common data typed 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 |