Added TranslateActivity VScript function to CAI_BaseNPC

This commit is contained in:
Blixibon
2021-11-13 09:13:25 -06:00
parent 7161dee1a3
commit 76af96e3ae
2 changed files with 6 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
#include "vscript_server.h"
#include "soundent.h"
#include "rope.h"
#include "ai_basenpc.h"
#else
#include "c_rope.h"
#endif // CLIENT_DLL
@@ -1026,6 +1027,8 @@ void RegisterSharedScriptFunctions()
//
#ifndef CLIENT_DLL
ScriptRegisterFunctionNamed( g_pScriptVM, ScriptInsertSound, "InsertAISound", "Inserts an AI sound." );
ScriptRegisterFunctionNamed( g_pScriptVM, CAI_BaseNPC::GetActivityName, "GetActivityName", "Gets the name of the specified activity index." );
#endif
//