AI NavGoalFlags t: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) No edit summary |
m (the TODO was added in 2011. If valve hasn't fixed it after being broken for however many years, I doubt they will any time soon.) |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
;<code>AIN_YAW_TO_DEST</code> | ;<code>AIN_YAW_TO_DEST</code> | ||
:"While navigating, try to face the destination point". | :"While navigating, try to face the destination point". | ||
:{{ | :{{confirm|doesn't work?}} | ||
;<code>AIN_UPDATE_TARGET_POS</code> | ;<code>AIN_UPDATE_TARGET_POS</code> | ||
:If the <code>[[GoalType_t|GoalType]]</code> is <code>GOALTYPE_TARGETENT</code>, this flag will cause the NPC's destination to be updated every time the NPC thinks (or more precisely, every time [[condition]]s are gathered). | :If the <code>[[GoalType_t|GoalType]]</code> is <code>GOALTYPE_TARGETENT</code>, this flag will cause the NPC's destination to be updated every time the NPC thinks (or more precisely, every time [[condition]]s are gathered). |
Latest revision as of 00:29, 19 May 2018
Flags used by the AI_NavGoal_t
structure.
AIN_YAW_TO_DEST
- "While navigating, try to face the destination point".
Confirm:doesn't work?
AIN_UPDATE_TARGET_POS
- If the
GoalType
isGOALTYPE_TARGETENT
, this flag will cause the NPC's destination to be updated every time the NPC thinks (or more precisely, every time conditions are gathered). Tip:Use
SetTarget()
to choose the target entity.AIN_NO_PATHCORNER_PATHFINDING
- If using a path_corner, don't build a path; just head straight to the destination. The path_corner must be accessible in a straight line from the NPC's position!