Home   Help Search Login Register  

Author Topic: seek and destroy?  (Read 764 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
seek and destroy?
« on: 15 Oct 2004, 07:18:26 »
Is is possible to give a seek and destroy command in a script to a created unit.

I want a unit to be created at a certain location (I can do this) but I want him to seek and destroy in the area he is created.

I notice in the editor if I just put one waypoint on a soldier with the seek and destroy command he will move around looking for enemies.

Is it possible to do this in a script.

Thanks
"Everyone dies so deal with it and move on"

                                                      ME

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:seek and destroy?
« Reply #1 on: 15 Oct 2004, 07:54:41 »
Well, when you create a unit, you need to specify what group he is going to be put in, right? So you could probobally put down a unit, give him a S&D waypoint, then put this in his init field:
Code: [Select]
group1 = group this; deletevehicle thisThen you create your new unit into group1, and set the S&D waypoint onto his location using the setwaypointpos command. Thus, when he is created into that group, he will immediately start doing that group's waypoints.

I've never worked with created units myself, but I would think this would work.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:seek and destroy?
« Reply #2 on: 15 Oct 2004, 11:48:45 »
Put a cycle waypoint next to the S&D, otherwise he will stop eventually.
Plenty of reviewed ArmA missions for you to play