En:OnUnitActionWithObject
Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.
Содержание |
[править]
Syntax
function OnUnitActionWithObject(unit_name : String, object_name : String, act_type : ActionType) : Boolean
[править]
Description
Called when unit with name <unit_name> does action <act_type> with object with name <object_name>.
[править]
Parameters
- unit_name - string. Unit name who does action;
- object_name - string. Object name over which is done action;
- act_type - ActionType. Action type which unit does;
[править]
Result
The function returns :
- true - action can be done;
- false - action can't be done.
Data type - Boolean
[править]
Additional note
- This function is called only after procedure call of the same name from module unit_events.pfs
- This function isn't called if function of the same name from module unit_events.pfs returned value false
[править]