From 5eb1ba3bcc3983f936ef1d0a7701f19152d0dd81 Mon Sep 17 00:00:00 2001 From: Mat Date: Mon, 30 Mar 2020 22:35:37 +0300 Subject: Lua API for spectating entities (#4518) --- Server/Plugins/APIDump/APIDesc.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Server/Plugins/APIDump/APIDesc.lua') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index ff704539f..88ab8c5ba 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -11132,6 +11132,17 @@ a_Player:OpenWindow(Window); }, Notes = "Sets the player visibility to other players", }, + SpectateEntity = + { + Params = + { + { + Name = "Target", + Type = "cEntity", + }, + }, + Notes = "Spectates the target entity. Does not change the player's gamemode to spectator mode. When called with self or nil as the target, resets the spectation.", + }, TossEquippedItem = { Params = -- cgit v1.2.3