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



Introduced in

Version:1.00

Description

Description:

Returns the preview picture for the specified vehicle type.

The definition for the preview image is taken from the preview property for CfgVehicle classes (units, vehicles, objects) and from the picture property for weapons.

Syntax

Syntax:previewPicture vehicle
Parameters:
  • vehicle: String - Vehicle type.
Return Value:String - Path to preview image. Returns an empty string, if none is found.

Examples

Examples:

Additional Information

See also:
Multiplayer:
Problems:

Notes







Posted on Feb 9, 2015
Kyle Sarnik
This command will reliably get the preview picture for CfgVehicles classes where getText on the 'preview' property may fail. The reason is that some content in VBS does not define the preview property in the configs and relies on engine functionality to find the preview picture based on filenames. This command seems to correctly replicate the engine functionality of finding the previews by filename as well.