Page tree
Skip to end of metadata
Go to start of metadata




Introduced in

Version:17.1.0

Description

Description:Sets the value of an internal property from an external simulation.
Note: The command only works if the External Controller adapter is enabled in VBS Gateway.

Syntax

Syntax:[extSim, id, property, value] call Gateway_SetExternalProperty
Parameters:
  • extSim: String - Name of the external simulation type.
  • id: Array of Number - Object ID of the entity that is registered as an external simulation.
  • property: String - Property name to set.
  • value: Number - Property value.
Return Value:Nothing

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
 ["JSBSim", [4,13,333], "propulsion/refuel", 1.0 ] call Gateway_SetExternalProperty; 

Additional Information

See also: Gateway GetExternalProperty
Multiplayer: The function returns nil, if not used in multiplayer or when Gateway is not active (the -gateway start-up parameter is not used).
Problems: 

Notes