Changes between Version 5 and Version 6 of Hooks
- Timestamp:
- Jul 7, 2014, 5:23:15 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hooks
v5 v6 1 1 Hooks 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. 2 2 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.3 All 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. 4 4 5 5 If you think a hook for another event could be interesting please [/newticket create a ticket] or [[Author|contact me]].