Changes between Version 5 and Version 6 of Hooks


Ignore:
Timestamp:
07.07.2014 17:23:15 (10 years ago)
Author:
Alloc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hooks

    v5 v6  
    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''. The folder ''<name of hook>'' has to be in exactly the same case as the hook name column in the table below shows it.
     3All hooks have to executable files in ''SDTD_BASE/hooks/<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]].