Changes between Version 3 and Version 4 of Hooks
- Timestamp:
- May 27, 2014, 11:15:53 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hooks
v3 v4 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''. 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. 4 4 5 5 If you think a hook for another event could be interesting please [/newticket create a ticket] or [[Author|contact me]].