SetCrewExtraData

Category: Player
Since engine version: 1.0 OC (extended in 2.0 OC)

Description

With this function additional data can be saved in a crew member's file the in player. This can be used to preserve values across scenarios, for example for RPGs or highscores. If successful, the saved value is returned.

Syntax

any SetCrewExtraData(string data_name, any Data);

Parameters

data_name:
Name for the data.
Data:
Data to be saved.

Remarks

No objects or arrays may be saved.
Because all scripts use the same storage in the crew member, the name for the data should be prefixed with the scenario or object name or your developer id.
See also: GetCrewExtraData, SetPlrExtraData
Sven2, 2006-02