Page 1 of 1

How to block the /take from a Gadget?

Posted: 13 Jan 2011, 23:32
by TheFatController
I'm writing a gadget to allow /take blocking for x seconds to allow players to reconnect however my initial thought to use "AllowUnitTransfer" is not working, the units don't transfer and stay the allies team colour but the engine still kills off the team when /take is executed with death message etc.

Can anyone suggest how else I can block /take from a gadget please or have I missed something here?

Re: How to block the /take from a Gadget?

Posted: 14 Jan 2011, 00:31
by Niobium
1) Block /take on :TextCommand and replace SendCommands with a function that checks argument. Ugly.

2) Wait for new spring, where team death is controlled by gadgets. Then allow the /take but do not kill the team for some given period, if the player rejoins then give them back the units they had, until then whoever takes can play around with the units and make sure they don't die. Maybe that old lineage code could help with this too.