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) --- src/Entities/Player.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Entities/Player.h') diff --git a/src/Entities/Player.h b/src/Entities/Player.h index 1ce2c5d9d..bea6e98f6 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -166,6 +166,9 @@ public: */ void SendRotation(double a_YawDegrees, double a_PitchDegrees); + /** Spectates the target entity. If a_Target is nullptr or a pointer to self, end spectation. */ + void SpectateEntity(cEntity * a_Target); + /** Returns the position where projectiles thrown by this player should start, player eye position + adjustment */ Vector3d GetThrowStartPos(void) const; -- cgit v1.2.3