MakeScenarioSaveName

Category: System
Since engine version: 3.0 OC

Description

Returns the name under which an object is stored in an Objects.c file if it is saved with the "Save scenario" option (See Scenario objects saving).

Syntax

string MakeScenarioSaveName();

Example

local target;

func SaveScenarioObject(props)
{
	if (!inherited(props, ...)) return false;
	if (target) props->Add("Target", "SetTarget(%s)", target->MakeScenarioSaveName());
	return false;
}
Stores a call to SetTarget using a reference to an object stored in the target variable.
See also: Scenario objects saving
Sven2, 2013-12