Author Topic: Can a Plugin enque a command onto a named queue?  (Read 2796 times)

BaslimJubbul

  • Newbie
  • *
  • Posts: 5
Can a Plugin enque a command onto a named queue?
« on: October 15, 2021, 11:35:14 PM »
The manual is quite extensive and I'm looking forward to playing with many of the features. I read about queue metadata that plugins can check on. But one thing I could not seem to find...

Is it possible for a plugin to enqueue a command onto a command queue? for example, a Profile command `Start Game` calls MyPlugin, and in the static VA_Invoke1 method, have that method check on the status of 'Operations Queue', and then enqueue a number of Profile commands to the 'Operations Queue' and start the queue processing?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4647
  • RTFM
Re: Can a Plugin enque a command onto a named queue?
« Reply #1 on: October 16, 2021, 10:43:45 AM »
Currently plugins cannot directly enqueue commands, no. You'd need to execute a command that in turn enqueues another command.