OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: bluevein on 26 Aug 2008, 02:36:02

Title: I need a Target not Waypoint
Post by: bluevein 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
Title: Re: I need a Target not Waypoint
Post by: johnnyboy 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.
Title: Re: I need a Target not Waypoint
Post by: bluevein 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 (http://community.bistudio.com/wiki/setWaypointType)