loadIdentity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\|= * " to " ")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofpr |Game name=
| ofpr


|1.75|Game version=
|1.75


|gr1= Unit Identity |GROUP1=
|gr1= Unit Identity


| Loads person's identity from [[Objects.sav]] file in campaign directory (from entry name). |DESCRIPTION=
| Loads person's identity from [[Objects.sav]] file in campaign directory (from entry name).


| person '''loadIdentity''' name |SYNTAX=
| person '''loadIdentity''' name


|p1= person: [[Object]] |PARAMETER1=
|p1= person: [[Object]]


|p2= name: [[String]] |PARAMETER2=
|p2= name: [[String]]


| [[Boolean]] |RETURNVALUE=
| [[Boolean]]


|mp= This command doesn't work in Multiplayer
|mp= This command doesn't work in Multiplayer
   
   
|x1= <code>_ok <nowiki>=</nowiki> [[player]] '''loadIdentity''' "playerIdentity"</code> |EXAMPLE1=
|x1= <code>_ok <nowiki>=</nowiki> [[player]] '''loadIdentity''' "playerIdentity"</code>


| [[saveIdentity]], [[lockIdentity]], [[setIdentity]]   |SEEALSO=
| [[saveIdentity]], [[lockIdentity]], [[setIdentity]]


}}
}}

Revision as of 02:03, 18 January 2021

Hover & click on the images for description

Description

Description:
Loads person's identity from Objects.sav file in campaign directory (from entry name).
Multiplayer:
This command doesn't work in Multiplayer
Groups:
Unit Identity

Syntax

Syntax:
person loadIdentity name
Parameters:
person: Object
name: String
Return Value:
Boolean

Examples

Example 1:
_ok = player loadIdentity "playerIdentity"

Additional Information

See also:
saveIdentitylockIdentitysetIdentity

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

Bottom Section