From 1130a40d1ebeaad655626768b0d63c7fd292cb55 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sun, 21 Nov 2021 00:14:13 -0600 Subject: [PATCH] Added SetViewtarget function to VScript --- sp/src/game/server/baseflex.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sp/src/game/server/baseflex.cpp b/sp/src/game/server/baseflex.cpp index 921e3fe6..49f3c189 100644 --- a/sp/src/game/server/baseflex.cpp +++ b/sp/src/game/server/baseflex.cpp @@ -102,6 +102,10 @@ BEGIN_ENT_SCRIPTDESC( CBaseFlex, CBaseAnimating, "Animated characters who have v #endif DEFINE_SCRIPTFUNC_NAMED( ScriptGetOldestScene, "GetCurrentScene", "Returns the instance of the oldest active scene entity (if any)." ) DEFINE_SCRIPTFUNC_NAMED( ScriptGetSceneByIndex, "GetSceneByIndex", "Returns the instance of the scene entity at the specified index." ) + +#ifdef MAPBASE + DEFINE_SCRIPTFUNC( SetViewtarget, "Sets the entity's eye target." ) +#endif END_SCRIPTDESC();