BIS fnc addCuratorIcon: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|descr=(.*) \| (.*) " to " |descr= $1 |s1= $2 ")
m (Some wiki formatting)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 1.16
|version1= 1.16


|gr1= Curator
|gr1= Curator


|descr= Add an icon displayed in curator interface.
|descr= Add an icon displayed in curator interface.


|s1= [object, iconParams, map, 3D] call [[BIS_fnc_addCuratorIcon]]
|s1= [object, iconParams, map, 3D] call [[BIS_fnc_addCuratorIcon]]
Line 19: Line 18:
|p4= 3D: [[Boolean]] - (Optional, default [[true]]) [[true]] to show icon in 3D scene
|p4= 3D: [[Boolean]] - (Optional, default [[true]]) [[true]] to show icon in 3D scene


| [[Number]] - Icon ID, used in [[BIS_fnc_removeCuratorIcon]]
|r1= [[Number]] - Icon ID, used in [[BIS_fnc_removeCuratorIcon]]


|x1= <code>[ curatorModule, ["targetIcon.paa", [1,1,1,1], position [[player]], 1, 1, 45, "Target", 1, 0.05, "TahomaB"], [[false]] ] [[call]] [[BIS_fnc_addCuratorIcon]];</code>
|x1= <code>[ curatorModule, ["targetIcon.paa", [1,1,1,1], position [[player]], 1, 1, 45, "Target", 1, 0.05, "TahomaB"], [[false]] ] [[call]] [[BIS_fnc_addCuratorIcon]];</code>

Revision as of 18:35, 9 June 2021

Hover & click on the images for description

Description

Description:
Add an icon displayed in curator interface.
Execution:
call
Groups:
Curator

Syntax

Syntax:
[object, iconParams, map, 3D] call BIS_fnc_addCuratorIcon
Parameters:
object: Object - Curator module
iconParams: Array - Icon params (see drawIcon3D scripting command for its format)
map: Boolean - (Optional, default true) true to show icon on map
3D: Boolean - (Optional, default true) true to show icon in 3D scene
Return Value:
Number - Icon ID, used in BIS_fnc_removeCuratorIcon

Examples

Example 1:
[ curatorModule, ["targetIcon.paa", [1,1,1,1], position player, 1, 1, 45, "Target", 1, 0.05, "TahomaB"], false ] call BIS_fnc_addCuratorIcon;

Additional Information

See also:
Arma 3: CuratorBIS_fnc_removeCuratorIcon

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