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

  1. This function is called only after procedure call of the same name from module unit_events.pfs
  2. This function isn't called if function of the same name from module unit_events.pfs returned value false

See also

Predefined procedures and functions (events)

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