global script map: remove key = [Object Command/Signal], class = [Var/Class], race =

Previous: global script map: set key = [Object Command/Signal], class = [Var/Class], race = [Va Commands/Signals Next: global script map: ignore key =[Object Command/Signal], class =[Var/Class], race =[Va
This page is a chapter in the book Commands/Signals.
global script map: remove key =[Object Command/Signal], class =[Var/Class] | null, race=[Var/Race] | null


Removes the link between a command/signal and a script either globally, or selectively for a
class of objects or a race's objects or a combination of the two.

This is often used to create exceptions to the setting of a link.
For example, if for some reason you want a command to be available to all ships except for M1 class ships, you could do the following:


Code

100 global script map: set key COMMAND_MY_COMMAND, class=ship, race=null, script='plugin.myplugin.myscript', prio=0

101 global script map: remove key COMMAND_MY_COMMAND, class=M1, race=null

Commands/Signals - Contents


Tags for this Page

Posting Permissions

Posting Permissions
  • You may not create new articles
  • You may not edit articles
  • You may not protect articles
  • You may not post comments
  • You may not post attachments
  • You may not edit your comments