ai_attack_region(npc_name, attack_name, distance)

Parameters:
npc_name (string) name of the NPC
attack_name (string) name of the navpoint, object, human, vehicle to defend/attack.
distance (float) distance of the leash, in meters (suggested minimum of 8m)
 
Returns:
none

Description:
Leashes an NPC to a navpoint, allowing them to attack and take cover while advancing to the leash. This does not make AI go hostile, use ai_add_enemy_target or notoriety to make them hostile.
 

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