En:OnUnitLook

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

Содержание

Syntax

function OnUnitLook(unit_name : String, 
                    object_name : String]) : Boolean

Description

Called when unit with name <unit_name> looks to object with name <object_name>.

Parameters

  • unit_name - string. Unit name who looks to object;
  • object_name - string. Object name to which look;

Result

The function returns :

  • true - System shouldn't execute build-in handler;
  • false - System shouldn execute build-in handler.

Data type - Boolean

Example

function OnUnitLook(unit_name, subj_name)	
	if (subj_name == "roma") and (unit_name == "hero") then
		AddStringMessageByIndex(112);
		return true
	else
		return false
	endif
 	return false
endfunction

See also

Predefined procedures and functions (events)

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