saveIdentity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofpr |Game name=
| ofpr


|1.75|Game version=
|1.75


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


| Saves person's identity to [[Objects.sav]] file in campaign directory as entry name. |DESCRIPTION=
| Saves person's identity to [[Objects.sav]] file in campaign directory as entry name.


| unitName '''saveIdentity''' name |SYNTAX=
| unitName '''saveIdentity''' name


|p1= unitName: [[Object]] |PARAMETER1=
|p1= unitName: [[Object]]
|p2= name: [[String]] |PARAMETER2=
|p2= name: [[String]]


| [[Boolean]] |RETURNVALUE=
| [[Boolean]]
   
   
|x1= <code>[[player]] saveIdentity "playerid"</code> |EXAMPLE1=
|x1= <code>[[player]] saveIdentity "playerid"</code>


| [[loadIdentity]] |SEEALSO=
| [[loadIdentity]]


}}
}}

Revision as of 11:01, 18 January 2021

Hover & click on the images for description

Description

Description:
Saves person's identity to Objects.sav file in campaign directory as entry name.
Groups:
Unit Identity

Syntax

Syntax:
unitName saveIdentity name
Parameters:
unitName: Object
name: String
Return Value:
Boolean

Examples

Example 1:
player saveIdentity "playerid"

Additional Information

See also:
loadIdentity

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

Notes

Posted on August 12, 2006 - 17:17
Str
Can be also used in singleplayer missions to save player status before cutscenes and load it to player's double.