Home   Help Search Login Register  

Author Topic: Searched but no reasonable answer  (Read 1122 times)

0 Members and 1 Guest are viewing this topic.

foodstamp

  • Guest
Searched but no reasonable answer
« on: 22 May 2003, 20:24:12 »
I am looking for a simple follow script for choppers wher I can adjust the distance and height of each chopper in the script. The ones I have seen and used are to complicated for my simple lil mind.

usrt_peanut_butter

  • Guest
Re:Searched but no reasonable answer
« Reply #1 on: 22 May 2003, 23:35:23 »
make a way point for them to move somewhere or w/e then put this in there init box
unitname setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +3]

+3=height +10 higher and -1.2 .3 or anything negative will cause a crash so kep it abouve 0


                  -Peanut Butter

MadFred

  • Guest
Re:Searched but no reasonable answer
« Reply #2 on: 23 May 2003, 10:28:59 »
PB, your suggestion to set the height of the chopper is ok, but why not keep it simple and use

this flyinheight xx  (xx is value in meters)

example:  helo1 flyinheight 100

can be used in unit init line, waypoint, trigger

("this" can be used in init line, the others need unitname)

 

foodstamp

  • Guest
Re:Searched but no reasonable answer
« Reply #3 on: 25 May 2003, 15:36:17 »
I know how too do that but thanx for that info there PB. Let me see if i can explain this in more detail.

I want chopper a, b, c, and d to follow each other about 7 meters apart. i can probably set the height in the init box which is no problem there. now a,b,c, and are seperat groups. So any suggestions?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Searched but no reasonable answer
« Reply #4 on: 25 May 2003, 16:33:29 »
7 metres is pretty damn close ... however, the basic idea is a little script

#loop
? chopperB distance chopperA > 7: chopperB doMove getpos chopperA
~0.5
goto "loop"

Similarly for C relative to B.   A has waypoints.    Syntax not guaranteed.

There is a following script in my mission Regina Proeliorum in the beta forum if you want a template ... borrow and manipulate as you like.
Plenty of reviewed ArmA missions for you to play

foodstamp

  • Guest
Re:Searched but no reasonable answer
« Reply #5 on: 26 May 2003, 03:35:43 »
Heres what I got. I couldnt find your script in your mission so I copied the above and it didnt work. One chopper set there and waited for the other chopper too get way out of distance before it moved. I set different varibles none worked.

#loop
? heli1 distance heli1_1 > 8: heli1 doMove getpos heli1_1
~0.5
goto "loop"
« Last Edit: 26 May 2003, 03:39:47 by foodstamp »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Searched but no reasonable answer
« Reply #6 on: 26 May 2003, 10:31:16 »
Sorry, it's called Shilka1.    Makes a Shilka follow you and another Shilka follow the support group, known as CSM.   If your shilka gets killed the other one takes its place.

I suspect the problem here is that the distance is too small and the collision detection is kicking in.     Try making them all further apart.   I'd try it with starting the flying as well, so you don't get takeoff effects.
Plenty of reviewed ArmA missions for you to play

foodstamp

  • Guest
Re:Searched but no reasonable answer
« Reply #7 on: 28 May 2003, 00:28:39 »
Ok i got that problem fixed thanks Mac