Home   Help Search Login Register  

Author Topic: I need a Target not Waypoint  (Read 1324 times)

0 Members and 1 Guest are viewing this topic.

Offline bluevein

  • Members
  • *
I need a Target not Waypoint
« on: 26 Aug 2008, 02:36:02 »
I'm trying to set a target up on a named unit as a waypoint just sets me a location at where the unit is at and doesn't follow it when it moves, this is probable simple and I have overlooked something:

Code: [Select]
_wp1 = group player addWaypoint [position Target1, 0];
Thanks

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re: I need a Target not Waypoint
« Reply #1 on: 26 Aug 2008, 19:09:06 »
Hi Bluevein,

I am unclear on what you need.

Do you want units to follow this unit (which is why you tried a waypoint)?

Or do you want a marker on the map to follow a unit?

Or are you trying to target a unit for artillery or airstrike?

A few more details, and we can point you at the right answer.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline bluevein

  • Members
  • *
Re: I need a Target not Waypoint
« Reply #2 on: 26 Aug 2008, 23:13:23 »
Yet, I have noticed, if you Control AI and you set them a target, the orange box follows the Target. However if you set a Move to the Orange Squair stays still.

What I am trying to do is make it so the script calls a Target on a named Object i.e a Soldier Called Target1 as the Orange Box will follow him. As it is now:

Code: [Select]
_wp1 = group player addWaypoint [position Target1, 0];
Will only set me a waypoint in his last known location when the script was called and when I get there he has moved.

Thanks

---EDIT---

Ok I found the answer fo others that may want to use this:

Code: [Select]
_wp = group logic1 addWaypoint [ getpos player, 1];
                    [group logic1, 1] setWPPos getpos player;
                   [group logic1, 1] setWaypointType "move";ArmAtec

Source:

http://community.bistudio.com/wiki/setWaypointType
« Last Edit: 26 Aug 2008, 23:17:02 by bluevein »