Lua hooks (Counter-Strike 2D)

From Unreal Software English Wiki
Revision as of 18:23, 16 April 2016 by VADemon (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page lists all available Lua hooks in Counter-Strike 2D. For a more up-to-date version made by DC, refer to http://www.cs2d.com/help.php?hookcat=all

NOTE: This page is incomplete!

Contents

Basic

break

break is fired once a breakable entity is destroyed.

Syntax: x, y, playerID

x, y - breakable entity position in tiles

playerID - ID of player who destroyed the breakable or 0 if it was not broken by a player

Return: none


endround

endround is executed on round end

Syntax: mode

mode - specifies the type of a round end

Possible mode values:


log

log is executed when a text line has to be logged (console, log file).

Syntax: text

text - text to be written to log

Return:


mapchange

mapchange is fired when server changes the map.

Syntax: newmap

newmap - name of the new map that will be loaded

Return: none


parse

parse is fired once the server parses a server-side console command.

Syntax: text

text - text to be parsed and interpreted as a command

Return:

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox