Changes between Version 3 and Version 4 of Hooks


Ignore:
Timestamp:
May 27, 2014, 11:15:53 AM (10 years ago)
Author:
Christian Illy
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hooks

    v3 v4  
    11Hooks are a way to add additional behaviour to the scripts. They are basically custom scripts that are called upon specific events. For example one could define a hook which is called on player connects and then send a message in the in-game chat to greet the new player.
    22
    3 All hooks have to executable files in ''SDTD_BASE/<name of hook>/<any name>.sh''.
     3All hooks have to executable files in ''SDTD_BASE/<name of hook>/<any name>.sh''. The folder ''<name of hook>'' has to be in exactly the same case as the hook name column in the table below shows it.
    44
    55If you think a hook for another event could be interesting please [/newticket create a ticket] or [[Author|contact me]].