BIS fnc EXP camp initCharacter: 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 (Text replacement - "<code> *(\^+\]) +\[\[call\]\] +\[\[(BIS_fnc_[a-zA-Z0-9_]+)\]\];? *<\/code>" to "<sqf>$1 call $2;</sqf>")
Line 20: Line 20:
|r1= [[Boolean]] - Returns [[true]] if successful, [[false]] if not
|r1= [[Boolean]] - Returns [[true]] if successful, [[false]] if not


|x1= <code>[BIS_unit,"NIGHT"] [[call]] [[BIS_fnc_EXP_camp_initCharacter]];</code>
|x1= <sqf>[BIS_unit,"NIGHT"] call BIS_fnc_EXP_camp_initCharacter;</sqf>


|seealso= [[BIS_fnc_EXP_camp_initClasses]]
|seealso= [[BIS_fnc_EXP_camp_initClasses]]
}}
}}

Revision as of 19:03, 5 May 2022

Hover & click on the images for description

Description

Description:
Assigns correct appearance and loadout of story characters based upon their vehicle classnames.
Execution:
call
Multiplayer:
Must be executed on all machines.
Groups:
Campaign

Syntax

Syntax:
[unit, mode] call BIS_fnc_EXP_camp_initCharacter
Parameters:
unit: Object - The character to be initialized
mode: String - (Optional, default "DAY") Can be either "DAY" (unsilenced, no NVGs, default) or "NIGHT" (silenced, NVGs)
Return Value:
Boolean - Returns true if successful, false if not

Examples

Example 1:
[BIS_unit,"NIGHT"] call BIS_fnc_EXP_camp_initCharacter;

Additional Information

See also:
BIS_fnc_EXP_camp_initClasses

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