BIS fnc EXP camp initCharacter: Difference between revisions

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


| arma3 |Game name=
|game1= arma3
|version1= 1.62


|1.62|Game version=
|gr1= Campaign


<!---|arg= local |Multiplayer Arguments=--->
|eff= local


<!---|eff= local |Multiplayer Effects=--->
|descr= Assigns correct appearance and loadout of story characters based upon their vehicle classnames.


| <pre>/*
|mp= Must be executed on all machines.
Author: Thomas Ryan


Description:
|s1= [unit, mode] call [[BIS_fnc_EXP_camp_initCharacter]]
Assigns correct appearance and loadout of story characters based upon their vehicle classnames.
Must be executed on all machines.


Parameters:
|p1= unit: [[Object]] - the character to be initialized
_this select 0: OBJECT - The character to be initialized
_this select 1 (Optional): Can be either "DAY" (unsilenced, no NVGs, default) or "NIGHT" (silenced, NVGs)


Returns:
|p2= mode: [[String]] - (Optional, default "DAY") can be either "DAY" (unsilenced, no NVGs, default) or "NIGHT" (silenced, NVGs)
True if successful, false if not.
*/</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=


|[] call [[BIS_fnc_EXP_camp_initCharacter]]|Syntax=
|r1= [[Boolean]] - returns [[true]] if successful, [[false]] if not


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|x1= <sqf>[BIS_unit,"NIGHT"] call BIS_fnc_EXP_camp_initCharacter;</sqf>


|Datatype - description|Return value=
|seealso= [[BIS_fnc_EXP_camp_initClasses]]
 
|x1= <code></code>|Example 1=
 
|exec= call |Execution=
 
| |See also=
}}
}}
[[Category:Function Group: Campaign|{{uc:EXP_camp_initCharacter}}]]
[[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