stanhope 407 Posted April 29, 2018 Is it possible to get the preview picture for vehicles (like when you hover over a vehicle in the eden editor) with SQF? If that's the case it should be possible to display it in a GUI correct? (PS: I'm not asking anyone to write it for me, just point me in the right direction) Share this post Link to post Share on other sites
HazJ 1287 Posted April 29, 2018 Sure. Something like (not tested): _control ctrlSetText format ["%1", getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "picture")]; picture = "\A3\soft_f\Offroad_01\Data\UI\Offroad_01_base_CA.paa"; editorPreview = "\A3\EditorPreviews_F\Data\CfgVehicles\C_Offroad_01_F.jpg"; configfile >> "CfgVehicles" >> "C_Offroad_01_F" >> "picture" configfile >> "CfgVehicles" >> "C_Offroad_01_F" >> "editorPreview" Remember to define _control and _vehicle somewhere, obviously. 1 Share this post Link to post Share on other sites
stanhope 407 Posted April 29, 2018 2 minutes ago, HazJ said: picture = "\A3\soft_f\Offroad_01\Data\UI\Offroad_01_base_CA.paa"; Any way of getting this path from a vehicles class name? Share this post Link to post Share on other sites
HazJ 1287 Posted April 29, 2018 As shown above. _control ctrlSetText format ["%1", getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "picture")]; Share this post Link to post Share on other sites
stanhope 407 Posted April 29, 2018 I should sleep more :) 1 Share this post Link to post Share on other sites