From: Mircea Kitsune Date: Thu, 27 Oct 2011 13:45:20 +0000 (+0300) Subject: Add information messages to the remove command as well X-Git-Tag: xonotic-v0.6.0~35^2~18^2~120 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=95c848d0e156adddb371ccac7d87c9e2050f516f;p=xonotic%2Fxonotic-data.pk3dir.git Add information messages to the remove command as well --- 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;