AI COG Functions
Function List
AIGetMode
AIGetMode(Thing thing) -> int
AISetMode
AISetMode(Thing thing, int newMode)
AIClearMode
AIClearMode(Thing thing, int mode)
AIGetSubMode
AIGetSubMode(Thing thing) -> int
AISetSubMode
AISetSubMode(Thing thing, int submode)
AIClearSubMode
AIClearSubMode(Thing thing, int submode)
AIGetMovePos
AIGetMovePos(Thing thing) -> Vector
AISetMovePos
AISetMovePos(Thing thing, Vector pos, int bWait)
AIGetHomePos
AIGetHomePos(Thing thing) -> int
AIPauseMove
AIPauseMove(Thing thing, int msecPause)
AISetMaxHomeDist
AISetMaxHomeDist(Thing thing, float dist)
AIGetGoalThing
AIGetGoalThing(Thing thing) -> int
AIGetGoalLVec
AIGetGoalLVec(Thing thing) -> Vector
FirstThingInView
FirstThingInView(Thing thing, float fovX, float distance, int thingTypeMask) -> int
NextThingInView
ThingViewDot
ThingViewDot(Thing thing1, Thing thing2) -> float
AISetFireTarget
AISetFireTarget(Thing thing, Thing target)
AISetMoveThing
AISetMoveThing(Thing thing, Thing goalThing, int bWait)
AISetLookPos
AISetLookPos(Thing thing, Vector targetPos)
AISetMoveSpeed
AISetMoveSpeed(Thing thing, float speed)
AISetLookFrame
AISetLookFrame(Thing thing, int frameNum)
AISetMoveFrame
AISetMoveFrame(Thing thing, int frame)
IsAITargetInSight
IsAITargetInSight(Thing thing) -> int
AIFlee
AIFlee(Thing thing, Thing fleeFromThing)
AIStopFlee
AISetClass
AISetClass(Thing thing, AI class)
AIJump
AIJump(Thing thing, Vector movePos, float unknown/unused)
AIEnableInstinct
AIEnableInstinct(Thing thing, string instinctName, int bEnable) -> int
AISetLookThing
AISetLookThing(Thing thing, Thing target)
AISetLookThingEyeLevel
AISetLookThingEyeLevel(Thing thing, Thing target)
AIWaitForStop
AIWaitForStop(Thing thing)
AIWaitForHeadTracking
AIWaitForHeadTracking(Thing thing)
AIGetArmedMode
AIGetArmedMode(Thing thing) -> int
AIKnockout
AIKnockout(Thing thing, float secDuration, int timerId)
AIRunOver
AIRunOver(Thing thing, float duration, int id)
AISetAllowedSurfaceType
AISetAllowedSurfaceType(Thing thing, int surftypes)
AIClearAllowedSurfaceType
AIClearAllowedSurfaceType(Thing thing, int surftypes)
AISetCutsceneMode
AISetCutsceneMode(Thing thing)
AIClearCutsceneMode
AIClearCutsceneMode(Thing thing)
AISetGoalThing
AISetGoalThing(Thing thing, Thing goalThing)
AIEnableHeadTracking
AIEnableHeadTracking(Thing thing, Thing target)
AIDisableHeadTracking
AIDisableHeadTracking(Thing thing)
AIEnableBodyTracking
AIEnableBodyTracking(Thing thing, Thing target)
AIDisableBodyTracking
AIDisableBodyTracking(Thing thing)
AISetWpnt
AISetWpnt(Thing thing, int wpntIdx)
AISetWpntRank
AISetWpntRank(int wpntNum, int rank)
AISetWpntFlags
AISetWpntFlags(int wpntNum, int flags)
AIClearWpntFlags
AIClearWpntFlags(int wpntIdx, int flags)
AISetActiveWpntLayer
AISetActiveWpntLayer(int layer)
AIConnectWpnts
AIConnectWpnts(int wpntIdx1, int wpntIdx2)
AIConnectWpntsOneWay
AIConnectWpntsOneWay(int wpntIdx1, int wpntIdx2)
AITraverseWpnts
AITraverseWpnts(Thing thing, int wpntIdx, float moveSpeed, float degTurn, int mode) -> int
AIClearTraverseWpnts
AIClearTraverseWpnts(Thing thing)
AIFindNearestWpnt
AIFindNearestWpnt(Thing thing) -> int
AIWpntHuntTarget
AIWpntHuntTarget(Thing thing, float moveSpeed, float degTurn) -> int
AISetInstinctWpntMode
AISetInstinctWpntMode(Thing thing)
AIClearInstinctWpntMode
AIClearInstinctWpntMode(Thing thing)
AISpat
AISpat(Thing thing, float duration, int timerId)
AIFleeToWpnt
AIFleeToWpnt(Thing thing, int idx)