En:Free

Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.

Содержание

Syntax

<object variable>.Free()

Description

Method is destructor. Frees factory object and nulls the index in memory of the computer. This method DOES NOT DESTROY object in a gameplay and result of its action, it is only used for correct operating with memory;


Result

The method returns nothing;

Example

	var hero = CreateObject("MapObject");
	hero.GetObjectByName("hero");
	var old_exp = hero.GetUnitParam(UnitParam.Experience);
	hero.SetUnitParam(UnitParam.Experience, old_exp + addValue);
	hero.Free();

See also

  1. Classes
  2. Procedure CreateObject
Личные инструменты