continuous_spawn_set_orders(name, order, target[, leash_radius])

Parameters:
name (string) name of the script group
order (string) "attack", "defend", "move", "flee", "idle"
target (string) the human/object/navpoint to do this action with
leash_radius (float, optional) a radius for attacking/defending objects or navpoints.
 
Returns:
none

Description:
Set the post spawn orders of a group.

Examples: (group, "attack", "", -1) = attacks the closest player (group, "attack", object/nav, 10) = AI will attack everything on the way to the object/nav, stop and defend a 10m radius (group, "defend", object/nav, 15) = AI will run to a 15m radius of the object/nav, then attack enemies. (group, "move", navpoint, -1) = AI will run the navpoint. (group, "flee", "", -1) = AI will run away from closest player.

 

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