From 95c848d0e156adddb371ccac7d87c9e2050f516f Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 27 Oct 2011 16:45:20 +0300 Subject: [PATCH] Add information messages to the remove command as well --- qcsrc/server/mutators/sandbox.qc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 6bdbaf713..077952db5 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -349,7 +349,12 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) // removes e if it was attached e = sandbox_EditObject_Get(); if(e != world) + { sandbox_AttachObject_Remove(e); + print_to(self, "Child objects detached successfully"); + return TRUE; + } + print_to(self, "WARNING: Child objects could not be detached. Make sure you are facing an object that belongs to you"); return TRUE; } return TRUE; -- 2.39.2