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
[править]