BIS fnc EXP camp IFF: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9])=([^ ]+) * \|version([0-9])=([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
m (Some wiki formatting)
Line 12: Line 12:
|eff= local
|eff= local


|descr= Simple handling of the Support Team's scripted IFF.<br> <br>
|descr= Simple handling of the Support Team's scripted IFF.
 
{{Feature|See {{Link|#Example 2}} for icon and name options.}}
Notes:
*To always show the icon and name of a unit, use: {{ic|<unit> setVariable ["BIS_iconAlways", true];}}
*Otherwise, icons can be hidden with:    {{ic|<unit> setVariable ["BIS_iconShow", false];}}
*And names can be hidden with:      {{ic|<unit> setVariable ["BIS_iconName", false];}}


|s1= [units] call [[BIS_fnc_EXP_camp_IFF]]
|s1= [units] call [[BIS_fnc_EXP_camp_IFF]]


|p1= units: [[Array]] - An array of units to apply IFF effect
|p1= units: [[Array]] - an array of units on which to apply IFF effect


|r1= [[Boolean]] - [[true]] if successful, [[false]] if not
|r1= [[Boolean]] - [[true]] if successful, [[false]] if not


|x1= <code><noWiki>[[</nowiki>[[player]]<noWiki>]]</nowiki> [[call]] [[BIS_fnc_EXP_camp_IFF]];</code>
|x1= <sqf>[[player]] call BIS_fnc_EXP_camp_IFF;</sqf>
 
|x2= <sqf>
individualUnit setVariable ["BIS_iconAlways", true]; // to always show the icon and name of a unit
individualUnit setVariable ["BIS_iconShow", false]; // to hide the icon
individualUnit setVariable ["BIS_iconName", false]; // to hide the name
</sqf>


|seealso=
|seealso=
}}
}}

Revision as of 18:32, 13 July 2022

Hover & click on the images for description

Description

Description:
Simple handling of the Support Team's scripted IFF. -unknown feature ("See Example 2 for icon and name options.") defined-
Execution:
call
Groups:
CampaignGUI

Syntax

Syntax:
[units] call BIS_fnc_EXP_camp_IFF
Parameters:
units: Array - an array of units on which to apply IFF effect
Return Value:
Boolean - true if successful, false if not

Examples

Example 1:
[[player]] call BIS_fnc_EXP_camp_IFF;
Example 2:
individualUnit setVariable ["BIS_iconAlways", true]; // to always show the icon and name of a unit individualUnit setVariable ["BIS_iconShow", false]; // to hide the icon individualUnit setVariable ["BIS_iconName", false]; // to hide the name

Additional Information

See also:
See also needed

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