Scripting Engine - SourceCE/Source-SP GitHub Wiki

Getting Started

#include "SourceCE/scripto.h"

Adding Hooks

Hooks are global functions that get called by C++ code. First, register your hook:

g_scriptManager.AddHook("HookName");

Typically, it's good practice to do this all in one place, like DLLInit.

Calling hooks from your game code is very easy.

g_scriptManager.Call("HookName");

Autorun Scripts

Adding Functions