Hi, I have a question on the behavior of MOOSE patrols as I'm playing around with a few use-cases and trying to understand the framework behavior.
Question 1:
Situation: I create a few dynamic zones I want an AI group to patrol.
Once I assign a zone (zr) to a patrol, and a group (rescueHeloGroup) to that patrol, via
patrol = AI_PATROL_ZONE:New( zr, 50, 100, 3, 10 )
patrol:ManageFuel( 0.2, 60 )
patrol:SetControllable( rescueHeloGroup )
patrol:__Start(1)
will the patrol follow the zone around if the zone position dynamically changes via:
-- update zone position dynamically (this repositions the zone somewhere else during the mission)
zr:SetVec2(new_zone_center_vec2)
Will the patrol automatically follow the zone change, or do I need to recreate the patrol?
Question 2:
How do I terminate a patrol? Meaning, remove the object from the patrol and cleanup?
-- does this work?
patrol:SetControllable(nil)
Question 3:
Looking at the sample mission code, I'm not sure I understand the __Start(), __Accomplish() and how to change states in the AI routines in general. Looking up examples isn't helping, I'm looking for what they do, I see them used, but I dont see the parameters explained. Must be looking in the wrong area :)
Thanks!