OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Meatball0311 on 02 Dec 2005, 22:55:42

Title: Question about getMarkerPos
Post by: Meatball0311 on 02 Dec 2005, 22:55:42
I am telling my helo: helo getMarkerPos "base"
I keep getting an error.  How do you set a marker for my base?
Title: Re:Question about getMarkerPos
Post by: macguba on 02 Dec 2005, 23:16:22
Your command doesn't make sense.

What are you trying to do?    Do you want the chopper to fly to that position?
Title: Re:Question about getMarkerPos
Post by: Meatball0311 on 02 Dec 2005, 23:27:52
yes. I want my helo to fly back to the base after inserting my troops.  I am telling my helo two commands: helo flyinheight 35; helo domove getMarkerPos base

is that correct?
 
also how do i make a marker for my base, so helo can get that marker position?
Title: Re:Question about getMarkerPos
Post by: marcus3 on 02 Dec 2005, 23:44:52
in the marker makeing interface, in the name put
Base
that is jst a name for getpos that will not show up on the screen, in the text box, what u put will show up :) hope this helps
Title: Re:Question about getMarkerPos
Post by: Triggerhappy on 03 Dec 2005, 01:03:37
also, marker names are strings ( "name" )
Title: Re:Question about getMarkerPos
Post by: Raptorsaurus on 03 Dec 2005, 01:24:41
You need to put : helo doMove getMarkerPos "base".  That will work if the the marker name is "base".  But that will not make the chopper land unless you have a trigger telling it to do so near the "base".  Also you should put a helipad or invisible helipad at the base so the chopper knows where to land.  If you do that, then you can name the helipad base_pad or somthing like that.  Then you can use the command: helo doMove getPos base_pad.  Then at the base put a trigger with a radius that goes beyond the boundries of the base.  Group the trigger to the chopper so that the tigger becomes a "vehicle present trigger".  Then in the on activation feild of the trigger put : Helo land "land".
Title: Re:Question about getMarkerPos
Post by: Meatball0311 on 03 Dec 2005, 06:04:13
Thanks to all!

Rap that is good stuff thanks.

I am going to post another question and I would like all of your input

thanx
Title: Re:Question about getMarkerPos
Post by: Meatball0311 on 03 Dec 2005, 17:38:31
O.K. I think my problem is solved.

What I did was make a H pad and named it base_pad.

next, I made a trigger (axis a = 5, axis b = 5) and placed on top of H pad (base).

then I hit F-2 (group) and draged it to my helicopter named (helo) and grouped the helo with the trigger, which then made the trigger only be activated by (helo) being present.

I gave helo some normal waypoints and at the last waypoint in the on Activation field I wrote - helo domove getPos base_pad

Now, I can have my helo insert my troops, and then it will return to the helo pad that I want it too.

Thanx to all, and to all a Merry Christmas