En:OnUnitSkill

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

Содержание

Syntax

function OnUnitSkill(unit_name : String, 
                     object_name : String,
                     skill_type : SkillType) : Boolean

Description

Called when unit with name <unit_name> doing skill with value <skill_type> over object with name <object_name>.

Parameters

  • unit_name - string. Unit name who does action;
  • object_name - string. Object name over whith is done action;
  • skill_type - SkillType. Skill type which unit does;

Result

The function returns :

  • true - action can be done;
  • false - action can't be done.

Data type - Boolean

Example

function OnUnitSkill(unit_name, subj_name, skill_type)
	return (skill_type == SkillType.Theft) 
endfunction

See also

Predefined procedures and functions (events)

Личные инструменты