Home   Help Search Login Register  

Author Topic: Follow script  (Read 492 times)

0 Members and 1 Guest are viewing this topic.

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Follow script
« on: 16 Oct 2004, 23:19:31 »
I was wondering if there was a script that alowed a vehicle or man to follow a certain unit even if he wasent in there group. I think ive seen one before but cant remember where. Could sombody make one if there is not one.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Follow script
« Reply #1 on: 16 Oct 2004, 23:40:59 »
The basic script you want is

#loop
? not (alive loon1) : exit
loon1 doMove getPos leader grp2
~3
goto "loop"

but you need to add bells and whistles depending on exactly what you want.
Plenty of reviewed ArmA missions for you to play

Offline penguinman

  • Contributing Member
  • **
  • Money is worthless, just paper, ink, and threads
Re:Follow script
« Reply #2 on: 17 Oct 2004, 03:09:18 »

Thank you very much or/ cheers! but
What do u mean by bells and whistles.
if i gave u an example would u be able to do it?

I have 9 humvees i need each one to follow the  one in front of it exactly to within 3meters.
even if there is a person standing infront of the humvee. i just need them to run him over and not stop following the one in front for anything. and if posible can u have them follow exactly in the one in fronts tracks. the humvees names are: jeep1,jeep2,jeep3 and so on

im not a very good scripter so i wouldnt even know where to start. also what would the entire syntax be.
somthing like: [jeep2,jeep1] exec "follow.sqs"

With jeep2 being the one that follows and jeep1 being the one jeep2 follows.

once again thanks for the help this is probably the most important script in my campaign because i use in in every mission.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Follow script
« Reply #3 on: 17 Oct 2004, 04:31:02 »
Bells and whistles are just the particular features relevant in your particular case.    I don't write scripts for other people as a rule, on the grounds that it's your mission not mine.  

Quote
one in front of it exactly to within 3meters.
even if there is a person standing infront of the humvee.

That is probably impossible, due to the collision detection routines.    If not, it is still a seriously advanced scripting problem.     I would recommend 9 hummers, 9 drivers all in the same group, and a few move waypoints with setbehaviour safe.

I wrote about working with, not against, the game engine in a thread the other day.        
Plenty of reviewed ArmA missions for you to play

Dubieman

  • Guest
Re:Follow script
« Reply #4 on: 17 Oct 2004, 04:34:01 »
If under fire, I think this mission your making sounds like BHD, you should have these hummers in CARELESS mode cause I thought that once fired upon or upon seeing the enemy the AI goes to AWARE or DANGER modes... :-\