Home   Help Search Login Register  

Author Topic: AI and waypoints  (Read 623 times)

0 Members and 1 Guest are viewing this topic.

eversman

  • Guest
AI and waypoints
« on: 16 Jul 2003, 21:24:22 »
Hi all....
I have a problem. In my mission i have unit - pointman - and players squad must goes follow him. I add couple triggers to give orders to this guy (stop, go, join and unassign from players group). Everything looks fine but when my pointman are unassigned from group stay in one place. I want do that he must follow his waypoints. What can i do it????

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:AI and waypoints
« Reply #1 on: 16 Jul 2003, 21:49:30 »
Only a group can have waypoints.   So your pointman has to join a group that has the waypoints you want him to follow.    

Create a gamelogic.   Give it the waypoints that  you want your pointman to have.     Write this in the init field

pointGrp = group this;  deletevehicle this

Then, when you want your pointman to go off on his own, use

[pointman] join pointGrp

Even though the gamelogic has been deleted the group still exists.

At least, I think that should work.    Try it and see how you get on.    

If I'm wrong somebody correct me.
Plenty of reviewed ArmA missions for you to play

Offline Blanco

  • Former Staff
  • ****
Re:AI and waypoints
« Reply #2 on: 16 Jul 2003, 22:41:56 »
interesting macguba

I didn't know u could give move-waypoints to a gamelogic...

Gonna try that tonight.


Search or search or search before you ask.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:AI and waypoints
« Reply #3 on: 17 Jul 2003, 00:30:50 »
Yep, you can do all kinds of cool stuff with a GL.    It can do pretty much everthing an ordinary unit can do.

In this case, since it's deleted, you could just use an ordinary unit, but a GL seems more elegant.
Plenty of reviewed ArmA missions for you to play