Category:Script Events: Difference between revisions
Created page with "The following is an index of script event hooks. Script events are points during engine activity where OpenBOR executes either a native script or a user-defined script. Provided the script file exists and has been loaded, OpenBOR calls the main() function within that file. Depending on its purpose, the script may modify properties, alter how the event is processed, or cancel the parent event entirely. For example, OpenBOR checks for data/scripts/update.c when the gam..." |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
The following is an index of script event hooks. | The following is an index of script event hooks. | ||
Script events are points during engine activity where OpenBOR executes either a native script or a user-defined script. Provided the script file exists and has been loaded, OpenBOR calls the main() function within that file. | Script events are points during engine activity where OpenBOR executes either a native script or a user-defined script. Provided the script file exists and has been loaded, OpenBOR calls the [[main()]] function within that file. Lifecycle [[oncreate()]] and [[ondestroy()]] functions fire on load and destruction of the scripts respectfully. | ||
Depending on its purpose, the script may modify properties, alter how the event is processed, or cancel the parent event entirely. | Depending on its purpose, the script may modify properties, alter how the event is processed, or cancel the parent event entirely. | ||
For example, OpenBOR checks for data/scripts/update.c when the game starts. When the file exists, OpenBOR loads it and executes its main() function during every internal engine update. | For example, OpenBOR checks for data/scripts/update.c when the game starts. When the file exists, OpenBOR loads it and executes its [[main()]] function during every internal engine update. | ||
[[Category:Script]] | |||
[[Category:Openbor]] | |||
Latest revision as of 21:36, 20 August 2026
The following is an index of script event hooks.
Script events are points during engine activity where OpenBOR executes either a native script or a user-defined script. Provided the script file exists and has been loaded, OpenBOR calls the main() function within that file. Lifecycle oncreate() and ondestroy() functions fire on load and destruction of the scripts respectfully.
Depending on its purpose, the script may modify properties, alter how the event is processed, or cancel the parent event entirely.
For example, OpenBOR checks for data/scripts/update.c when the game starts. When the file exists, OpenBOR loads it and executes its main() function during every internal engine update.
Pages in category "Script Events"
The following 74 pages are in this category, out of 74 total.
O
- On bind update other to self script
- On bind update self to other script
- Onblockoscript
- Onblockpscript
- Onblocksscript
- Onblockwscript
- Onblockyscript
- Onblockzscript
- Ondeathscript
- Ondoattackscript
- Ondrawscript
- Onfallscript
- Onkillscript
- Onmodelcopyscript
- Onmovexscript
- Onmoveyscript
- Onmovezscript
- Onpainscript
- Onspawnscript