Closed DrVrej closed 1 year ago
I added all functions except for GoalType
stuff. I feel like it's too low level to expose, NavSetGoalTarget
sets the goal type appropriately. I think it would be more logical to have more functions that generate a path and set the goal type appropriately.
I added all functions except for
GoalType
stuff. I feel like it's too low level to expose,NavSetGoalTarget
sets the goal type appropriately. I think it would be more logical to have more functions that generate a path and set the goal type appropriately.
Thank you for adding the other ones! As for GoalType
, I primarily need GetGoalType
, it would greatly help custom tasks and certain parts of the AI. The enum binding can be skipped too, the return number will be sufficient. Thank you!
Alright, added NPC:GetCurGoalType
Details
Couple of important self explanatory navigation functions and a set of enums for 2 of them:
vector NPC:GetGoalPos()
( Link ): Returns current goal's position, different from the existingNPC:GetCurWaypointPos()
&NPC:GetNextWaypointPos()
!entity NPC:GetGoalTarget()
( Link ): Opposite of the existingNPC:NavSetGoalTarget()
, it returns the current goal's target, this is different from the existingNPC:GetTarget()
!bool NPC:CurWaypointIsGoal()
( Link ): Returns true if current waypoint is the goal.enum NPC:GetGoalType()
( Link ): Returns the current goal type.void NPC:SetGoalType(enum)
( Link ): Sets the goal type, useful for those who are making their custom tasks.GOALTYPE_* enums
( Link ): Enums used byNPC:GetGoalType
,NPC:SetGoalType
.