PluginSupports
Script function

world.PluginSupports

DOC_scripting Read about scripting

Type

Method

Summary

Checks if a plugin supports a particular routine

Prototype

long PluginSupports(BSTR PluginID, BSTR Routine);

DOC_data_types View list of data type meanings


Description

Checks to see if a specified plugin exists, and supports a specified routine.

For example:

If world.PluginSupports ("80cc18937a2aca27079567f0", "LogIt") <> eOK then
world.Note "Required 'LogIt' routine is not available"
End If



VBscript example

If world.PluginSupports ("80cc18937a2aca27079567f0", "LogIt") <> eOK then
  world.Note "Required 'LogIt' routine is not available"
End If



Jscript example

If (world.PluginSupports ("80cc18937a2aca27079567f0", "LogIt") != eOK)
  {
  world.Note ("Required 'LogIt' routine is not available");
  }



PerlScript example

if ($world->PluginSupports ("80cc18937a2aca27079567f0", "LogIt") != eOK)   
 {
 $world->Note ("Required 'LogIt' routine is not available");
 }



Python example

if world.PluginSupports ("80cc18937a2aca27079567f0", "LogIt") != 0:
  world.Note ("Required 'LogIt' routine is not available")



Lua example

if PluginSupports ("80cc18937a2aca27079567f0", "LogIt") ~= error_code.eOK then
  Note ("Required 'LogIt' routine is not available")
end



Return value

eNoSuchPlugin: Plugin not installed
eNoSuchRoutine: Specified routine cannot be found in that plugin
eOK: Called OK


DOC_errors View list of return code meanings


See Also ...

Topics

DOC_aliases Aliases
DOC_Arrays Arrays
DOC_plugins Plugins
DOC_scripting Scripting
DOC_timers Timers
DOC_triggers Triggers
DOC_variables Variables

Functions

FNC_BroadcastPlugin BroadcastPlugin (Broadcasts a message to all installed plugins)
FNC_CallPlugin CallPlugin (Calls a routine in a plugin)
FNC_EnablePlugin EnablePlugin (Enables or disables the specified plugin)
FNC_GetPluginID GetPluginID (Returns the 24-character ID of the current plugin)
FNC_GetPluginInfo GetPluginInfo (Gets details about a specified plugin)
FNC_GetPluginList GetPluginList (Gets a list of installed plugins.)
FNC_GetPluginName GetPluginName (Returns the name of the current plugin)
FNC_GetPluginTimerInfo GetPluginTimerInfo (Gets details about a named timer for a specified plugin)
FNC_GetPluginTimerList GetPluginTimerList (Gets the list of timers in a specified plugin)
FNC_GetPluginVariable GetPluginVariable (Gets the contents of a variable belonging to a plugin)
FNC_GetPluginVariableList GetPluginVariableList (Gets the list of variables in a specified plugin)
FNC_IsPluginInstalled IsPluginInstalled (Checks to see if a particular plugin is installed)
FNC_LoadPlugin LoadPlugin (Loads a plugin from disk)
FNC_ReloadPlugin ReloadPlugin (Reloads an installed plugin)
FNC_SaveState SaveState (Saves the state of the current plugin)

(Help topic: function=PluginSupports)

DOC_contents Documentation contents page