BIS fnc EXP camp initCharacter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function " to "{{RV|type=function ")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(8 intermediate revisions by 2 users not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 1.62
|version1= 1.62


|gr1 = Campaign
|gr1= Campaign


|eff= local
|eff= local
Line 15: Line 14:
|s1= [unit, mode] call [[BIS_fnc_EXP_camp_initCharacter]]
|s1= [unit, mode] call [[BIS_fnc_EXP_camp_initCharacter]]


|p1= unit: [[Object]] - The character to be initialized
|p1= unit: [[Object]] - the character to be initialized
 
|p2= mode: [[String]] - (Optional, default "DAY") Can be either "DAY" (unsilenced, no NVGs, default) or "NIGHT" (silenced, NVGs)


|r1= [[Boolean]] - Returns [[true]] if successful, [[false]] if not
|p2= mode: [[String]] - (Optional, default "DAY") can be either "DAY" (unsilenced, no NVGs, default) or "NIGHT" (silenced, NVGs)


|x1= <code>[BIS_unit,"NIGHT"] [[call]] [[BIS_fnc_EXP_camp_initCharacter]];</code>
|r1= [[Boolean]] - returns [[true]] if successful, [[false]] if not


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


|seealso= [[BIS_fnc_EXP_camp_initClasses]]
|seealso= [[BIS_fnc_EXP_camp_initClasses]]
}}
}}
[[Category:Functions|{{uc:EXP_camp_initCharacter}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:EXP_camp_initCharacter}}]]

Latest revision as of 15:51, 8 November 2023

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