Help
Remember Me?
Home
Forum
Download
Scripting docs
Wiki
Category
Special Pages
Books
Recent Changes
Blogs
Wiki
Category
Category:Scripting
This site has been archived and made available for preservation purposes. No edits can be made.
If this is your first visit, be sure to check out the
FAQ
by clicking the link above. You may have to
register
before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
article
discussion
source
history
Viewing source for:
Scripting
Scripting is one of the most important features of Vault-Tec Multiplayer Mod. It grants access to in-game [wiki="Object"]Objects[/wiki] and allows to manipulate them. With the help of scripts, it is possible to customize the game experience and even create whole new gamemodes. Scripts are executed server-side by the dedicated server of vaultmp. Users who code scripts are known as [i]scripters[/i]. They mainly use the [category=Scripting functions]scripting functions[/category] and [category=Scripting callbacks]scripting callbacks[/category] (see [category=VaultMP interface]VaultMP interface[/category]) provided by the mod to write a script. A script can be written in C / C++ or in the [url="https://www.compuphase.com/pawn/pawn.htm"]PAWN[/url] language. See the section [wiki="Dedicated server setup#Installing a script"][i]Installing a script[/i][/wiki] in the dedicated server setup guide on how to load such a script. [h="2"] C / C++ scripting [/h] Scripts can be written in C and C++. It allows for maximum flexibility and an extremely large set of possibilities. An example script comes with the vaultmp package. C / C++ scripts need to be compiled as dynamic-link library (shared object for Unix) files. The entry point of a C / C++ script is [wiki]exec[/wiki]. [h="2"] PAWN scripting [/h] Scripts can be written in PAWN. With regard to the VaultMP interface, PAWN scripts can be as powerful as C / C++ ones. An example script comes with the vaultmp package. PAWN scripts need to be compiled with pawncc.exe (comes with vaultmp) and the -C64 command line option appended. The entry point of a PAWN script is [wiki]main[/wiki].