I am trying to design an item that, when double clicked, will send a command.

I tried achieving this with InvokeCommand("commandhere"), but InvokeCommand isn't being recognized, despite using all the directives I could at the top of the script. Any tips? Here's a snippet of the code:

C#:
        public override void OnDoubleClick(Mobile m)
        {
            m.InvokeCommand("Kick");
        }
 
Back