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
- Classes
- Procedure CreateObject