Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
SetPointListToFollow
Syntax
C++
int SetPointListToFollow(IFunctionHandler * pH);
Parameters 
Description 
entityId 
AI's entity id 
pointList 
should be like below local vectors = { { x = 0.0, y = 0.0, z = 0.0 }, -- vectors[1].(x,y,z) { x = 0.0, y = 0.0, z = 0.0 }, -- vectors[2].(x,y,z) { x = 0.0, y = 0.0, z = 0.0 }, -- vectors[3].(x,y,z) { x = 0.0, y = 0.0, z = 0.0 }, -- vectors[4].(x,y,z) { x = 0.0, y = 0.0, z = 0.0 }, -- vectors[5].(x,y,z) { x = 0.0, y = 0.0, z = 0.0 }, -- vectors[6].(x,y,z) { x = 0.0, y = 0.0, z = 0.0 }, -- vectors[7].(x,y,z) { x = 0.0, y = 0.0, z = 0.0 }, -- vectors[8].(x,y,z) } 
howmanypoints 
bspline 
if true, the line is recalcurated by spline interpolation. 
navtype 
(optional) specify a navigation type ( default = IAISystem::NAV_FLIGHT )
 

Syntax: AI.SetPointListToFollow(entityId, pointlist, howmanypoints, bspline [, navtype]) 

Set a point list for followpath goal op

Copyright (c) 2012. All rights reserved.