force_melee(name, attack_type)

Parameters:
name (string) name of the character
attack_type (integer) index of the attack type
 
Returns:
none

Description:
Force a character to perform a melee attack. NOTE: attack_type is no longer used - we will need to find a replacement method

The indices for available attack types are:
  1 = punch left
  2 = punch right
  3 = firearm melee attack
  4 = block
  5 = wieldable prop 2-handed
  6 = wieldable prop 1-handed
  7 = wieldable prop 2-handed, low
  8 = wieldable prop 2-handed, high

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:15