ACS: Difference between revisions

From Zandronum Wiki
(→‎ACS Functions: Changed IsMultiplayer to IsNetworkGame.)
(Remove Devfeature)
Line 43: Line 43:
* <code>[[GetPlayerLivesLeft]]</code>
* <code>[[GetPlayerLivesLeft]]</code>
* <code>[[GetTeamProperty]]</code>
* <code>[[GetTeamProperty]]</code>
* <code>[[GetTimeProperty]]</code> {{devfeature|3.0|150831-1814}}
* <code>[[GetTimeProperty]]</code>
* <code>[[IncrementDBEntry]]</code>
* <code>[[IncrementDBEntry]]</code>
* <code>[[IsNetworkGame]]</code>
* <code>[[IsNetworkGame]]</code>
Line 60: Line 60:
* <code>[[SetPlayerLivesLeft]]</code>
* <code>[[SetPlayerLivesLeft]]</code>
* <code>[[SortDBEntries]]</code>
* <code>[[SortDBEntries]]</code>
* <code>[[Strftime]]</code> {{devfeature|3.0|150831-1814}}
* <code>[[Strftime]]</code>
* <code>[[SystemTime]]</code> {{devfeature|3.0|150831-1814}}
* <code>[[SystemTime]]</code>


==Deprecated==
==Deprecated==

Revision as of 08:50, 2 September 2017

This is an incomplete list of Zandronum-only ACS functions and extensions. See here for a list of ZDoom-supported ACS functions. Note that not all of them are supported by Zandronum.

Features

Zandronum supports databases, powered by SQLite.

Script Types

EVENT scripts are executed when specific game events occur.

There are additional script types that can be appended to regular script types:

  • NET scripts are server-side and can be executed by clients using the puke command.
  • CLIENTSIDE scripts client-side and can not be executed by the puke command.
  • NET CLIENTSIDE scripts are client-side and can be executed by the puke command.


In this example, when someone picks up the enemy item it will start this script on the Client side:

Script 1 PICKUP CLIENTSIDE
{
    Print(s:"Someone got the flag!");
}


It is worth reading Clientside Scripting if you intend on using CLIENTSIDE scripts.

ACS Functions

Deprecated

These functions are deprecated. They still work, but will be removed eventually. It is recommended you use more up to date functions.

Related Articles