Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
AddFormationPoint
Syntax
C++
int AddFormationPoint(IFunctionHandler * pH);
Parameters 
Description 
name 
name of the formation descriptor 
sightangle 
angle of sight of the node (-180,180; 0 = the guy looks forward) 
distance 
distance from the formation's owner 
offset 
X offset along the following line (negative = left, positive = right) 
unit_class 
class of soldier (see eSoldierClass definition in IAgent.h) distanceAlt (optional)- alternative distance from the formation owner (if 0, distanceAlt and offsetAlt will be set respectively to distance and offset) offsetAlt (optional) - alternative X offset
 

Syntax: AI.AddFormationPoint(name, sightangle, distance, offset, [unit_class [,distanceAlt, offsetAlt]] ) 

Adds a follow-type node to a formation descriptor

Copyright (c) 2012. All rights reserved.