Home   Help Search Login Register  

Author Topic: Guard waypoints not working as advertised?  (Read 1958 times)

0 Members and 1 Guest are viewing this topic.

Offline Dash5

  • Members
  • *
Guard waypoints not working as advertised?
« on: 14 Jul 2007, 00:19:20 »
I've looked at the usage of these waypoints in the BIKI, but I cannot get desirable results when I attempt to implement them in my missions.

The group seems to wander far and wide with complete disregard for the guard trigger.  :confused: Is this a bug?

Offline LeeHunt

  • Former Staff
  • ****
  • John 21:25
Re: Guard waypoints not working as advertised?
« Reply #1 on: 14 Jul 2007, 01:32:26 »
The Guard waypoint is not so much "guard this spot" as-- stand guard for now, if the enemy is spotted head out as a Quick Reaction Force to wherever the trouble is.  The waypoints "Hold" and "Sentry" might be more what you are looking for- though Guard is arguably the most powerful and useful of the waypoints for having the AI be smart and reinforce areas you are attacking...

Offline Dash5

  • Members
  • *
Re: Guard waypoints not working as advertised?
« Reply #2 on: 14 Jul 2007, 03:51:09 »
So AI only move to the trigger when enemy units are encountered? Is there any way to restrict the range that guard groups wander?

Offline LeeHunt

  • Former Staff
  • ****
  • John 21:25
Re: Guard waypoints not working as advertised?
« Reply #3 on: 14 Jul 2007, 05:47:51 »
Let's say you have a patrol with that's route of waypoints ends in GUARD. They will go to the GUARD waypoint and sit there until an enemy is spotted by either the patrol or one of their comrades, even kilometers away. Then they will rush to wherever the fight is. So they don't move to the trigger when there's any action going on, they actually will probably move anyway.  I think this is within only a few kilometers.  I don't know how to restrict their range, maybe someone else on the forums knows?

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re: Guard waypoints not working as advertised?
« Reply #4 on: 14 Jul 2007, 21:26:29 »
I don't know of a way to restrict how far they travel within the existing waypoint system.  However, you can try using a script to keep their movement in check.  The following example code assumes that the Guard waypoint is the first (and only) waypoint.

Code: [Select]
_pos = getWPPos [group1,1]

#Loop

~2

; Exit the script if all units in group1 are dead.
? {alive _x} count (units group1) < 1 : exit

; If the leader is farther than 1000 meters from the waypoint, order the group to move to the waypoint.
? (leader group1) distance _pos > 1000 : (units group1) doMove _pos

goto "Loop"

Of course, you can change the 1000 meters to whatever distance suits your needs.  I chose to get the distance of the leader from the waypoint's position since I assume that the rest of the squad won't be too far away, since it's an AI squad.  I also have it dynamically get the leader of group1 each time just in case the leader dies; that way, the new leader's position will be used instead of the previous dead one's.
Ranger

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Guard waypoints not working as advertised?
« Reply #5 on: 14 Jul 2007, 22:01:52 »
anoder interestin ting is da createGuardedPoint command... i dint try it but if ny1 does ill b hapy 2 hear how AI handles it

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re: Guard waypoints not working as advertised?
« Reply #6 on: 15 Jul 2007, 17:42:00 »
As far as I remember, the guarded by-trigger is the place where the guarding unit will go when nothing is happening. If they (or any unit on their side) detects an enemy, they will move towards that position (if it is within a few kilometers distance). If the enemy disappears or is killed, they will relax and head for the nearest guarded by-trigger (if one is present). Correct me if I'm wrong, please.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Dash5

  • Members
  • *
Re: Guard waypoints not working as advertised?
« Reply #7 on: 15 Jul 2007, 21:27:31 »
As I understand it, it seems to be the opposite, nominesine. That is, AI patrol around the "Guard" WP until enemy is encountered, at which point they move to the trigger and defend.

Offline LeeHunt

  • Former Staff
  • ****
  • John 21:25
Re: Guard waypoints not working as advertised?
« Reply #8 on: 16 Jul 2007, 19:17:37 »
hey Dash5,

A great way to test the GUARD waypoint is this, and its actually fun== create a motorized squad and make you the player one of the grunts.  Set a guard waypoint only for the squad and then create a firefight between some BLUFOR and OPFOR infantry a few hundred meters away. watch how your orders change and what happens...

Offline Dash5

  • Members
  • *
Re: Guard waypoints not working as advertised?
« Reply #9 on: 17 Jul 2007, 03:54:19 »
Thanks for the advice, Lee! That really cleared up a lot of misconceptions I had about the nature of guard waypoints.

Offline LeeHunt

  • Former Staff
  • ****
  • John 21:25
Re: Guard waypoints not working as advertised?
« Reply #10 on: 17 Jul 2007, 05:36:17 »
THobson told me to try that and now i'm passing it on  :)  Glad it worked!  Look forward to the mission you are creating!

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Guard waypoints not working as advertised?
« Reply #11 on: 17 Jul 2007, 16:34:38 »
Read this dusty old thread for the wisdom of waypoint master Chris Death.
« Last Edit: 17 Jul 2007, 16:36:16 by Mr.Peanut »
urp!