BIS fnc EXP camp initCharacter: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
m (page filled)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
|game1= arma3


|1.62|Game version=
|version1= 1.62


<!---|arg= local |Multiplayer Arguments=--->
<!--|exec= server|=-->


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


| <pre>/*
|eff= local
Author: Thomas Ryan


Description:
|descr= Assigns correct appearance and loadout of story characters based upon their vehicle classnames.
Assigns correct appearance and loadout of story characters based upon their vehicle classnames.
Must be executed on all machines.


Parameters:
|mp= Must be executed on all machines.
_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:
|s1= [unit, mode] call [[BIS_fnc_EXP_camp_initCharacter]]
True if successful, false if not.
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_EXP_camp_initCharacter]]|Syntax=
|p1= unit: [[Object]] - The character to be initialized


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|p2= mode: [[Object]] - (Optional, default "DAY") Can be either "DAY" (unsilenced, no NVGs, default) or "NIGHT" (silenced, NVGs)


|Datatype - description|Return value=
|r1= [[Boolean]] - Returns [[true]] if successful, [[false]] if not


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


|exec= call |Execution=
|exec= call
 
|seealso= [[BIS_fnc_EXP_camp_initClasses]]


| |See also=
}}
}}



Revision as of 23:19, 13 January 2020

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:
Uncategorised

Syntax

Syntax:
[unit, mode] call BIS_fnc_EXP_camp_initCharacter
Parameters:
unit: Object - The character to be initialized
mode: Object - (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