En:Global.OnGetDamage

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

Содержание

Syntax

function OnGetDamage(fighter_name : String, 
                     target_name : String) : Number

Description

Called on calculation of damage on attack. Called after successful finished work of same named event from unit_events.pfs;

Parameters

  • fighter_name - string. Fighter name;
  • target_name - string. Target name;

Result

The function returns damage value on attack:

  • "result is 0" - damage isn't (Target unit sidestep);
  • "result more than 0" - Fighter hit Target;
  • "result less than 0" - Fighter hit oneself;
  • "result is MISSED_ATTACK" - Fighter missed

Attention ! Sidestep option without damage is turned aside !
Data type - Number;

See also

Predefined procedures and functions (events)

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