BIS fnc importImageLinks: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Fix)
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.08


|1.08|Game version=
|gr1= Diagnostic


|gr1= Diagnostic |GROUP1=
|descr= Imports CfgVehicles image links from the Community Wiki ({{Link|https://community.bistudio.com/|https://community.bistudio.com/}}).
 
| Imports CfgVehicles image links from Community Wiki (https://community.bistudio.com/).
# Run the script. It will copy a text into clipboard
# Run the script. It will copy a text into clipboard
# Open your [[Special:MyPage/Sandbox|Sandbox]] and paste the text into edit field
# Open your [[Special:MyPage/Sandbox|Sandbox]] and paste the text into edit field
# '''Preview''' the page (don't save it)
# '''Preview''' the page (do not save it)
# Copy the resulting text and use it in your scripts
# Copy the resulting text and use it in your scripts


Result is to the following format:
Result is in the following format:
<code>_imagesCfgVehicles {{=}} [
<sqf>
"papercar","{{filepath:Arma3 CfgVehicles PaperCar.jpg}}",
_imagesCfgVehicles = [
"firesectortarget","{{filepath:Arma3 CfgVehicles FireSectorTarget.jpg}}",
"papercar","https://community.bistudio.com/wikidata/images/8/85/Arma3_CfgVehicles_PaperCar.jpg",
"building","{{filepath:Arma3 CfgVehicles Building.jpg}}",
"firesectortarget","",
(…)
"building","",
];</code>
// etc
];
</sqf>


{{Important|
{{Feature|important|Be wary that this function is '''CPU-demanding''' and may lock your computer for 5-10 seconds.}}
Be wary that '''this function is CPU-demanding''' and may lock your computer for 5-10 seconds!}} |DESCRIPTION=


| call [[BIS_fnc_importImageLinks]]; |SYNTAX=
|s1= call [[BIS_fnc_importImageLinks]]


| [[Boolean]] - [[true]] when done |RETURNVALUE=
|r1= [[Boolean]] - [[true]] when done


|x1= <code>[[call]] [[BIS_fnc_importImageLinks]];</code> |EXAMPLE1=
|x1= <sqf>call BIS_fnc_importImageLinks;</sqf>


| [[Special:Upload|Upload a File on the Wiki]] |SEEALSO=
|seealso= [[Special:Upload|Upload a File on the Wiki]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:importImageLinks}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:importImageLinks}}]]

Latest revision as of 09:51, 6 September 2024

Hover & click on the images for description

Description

Description:
Imports CfgVehicles image links from the Community Wiki (https://community.bistudio.com/).
  1. Run the script. It will copy a text into clipboard
  2. Open your Sandbox and paste the text into edit field
  3. Preview the page (do not save it)
  4. Copy the resulting text and use it in your scripts
Result is in the following format:
_imagesCfgVehicles = [ "papercar","https://community.bistudio.com/wikidata/images/8/85/Arma3_CfgVehicles_PaperCar.jpg", "firesectortarget","", "building","", // etc ];
Be wary that this function is CPU-demanding and may lock your computer for 5-10 seconds.
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
call BIS_fnc_importImageLinks
Return Value:
Boolean - true when done

Examples

Example 1:
call BIS_fnc_importImageLinks;

Additional Information

See also:
Upload a File on the Wiki

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note