OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Meatball0311 on 24 Nov 2005, 07:10:11

Title: How do I assign a helo pad to a specific helo?
Post by: Meatball0311 on 24 Nov 2005, 07:10:11
This is my situation.  I am using the addon pcusn_tarawa as a patrol platform for my helicopter operations in my mission.  The tarawa is a static ship (Empty, Objects, Static PC Tarawa).  I have helicopters available for CAS, Patrols, and support roles.  The problem is getting the helicopters to return to the Tarawa and land after they complete their missions. Any ideas on how to get them to return and land on the Tarawa?
Title: Re:How do I assign a helo pad to a specific helo?
Post by: Terox on 24 Nov 2005, 17:35:29
you use a combination of waypoints and / or  the land commands

a helo will normally land at the nearest helipad to the waypoint that runs the (examples.....unload cargo, getout) commands

the ai may deem that landing point to be unsuitable, due to trees etc or nearby aircraft and may land somewhere else nearby



Title: Re:How do I assign a helo pad to a specific helo?
Post by: Chris Death on 24 Nov 2005, 23:10:39
Like Terox already said - there's not really a guarantee
the an ai piloted heli will use the h-pad you want - even
when placing a waypoint exactly onto a h-pad (this would even
make that you can't drag the waypoint somewhere else because
it's stuck on the h-pad).

AI will always decide on their own where they land.

However - you might want to have a look into the thread
where the link at bottom of my signature leads (how to use
waypoint type scripted).

At the third post i included an example mission: chopper insertion

Using that method at least will let the chopper land, at the
position of the wayoint SCRIPTED. Playing around with
some settings in the scripts would give you a good chance
to land your helo were it's supposed to do.

~S~ CD
Title: Re:How do I assign a helo pad to a specific helo?
Post by: Meatball0311 on 25 Nov 2005, 01:58:53
Thank you both for your input.  I never really understood the Scripted waypoint.  So how would the script look, if i am correct it would go like this:

owner:
_group =  _this select 0

position:
_pos = _this select 1

target:
_target = _this select 2

Is this correct?

Now, that would work for pre designated waypoints, but how would it work with the chain of command engine?  Basically, I have a helo on stand-by to perform support missions (extactions, re-supply, med evac, etc.)  After the helo completes it's mission it returns to its original patrol base.  Now, there is no problem if the patrol base is on land, however I am using the pcusn tarawa (a helo carrier) as the patrol platform for my helo operations and after it performs it's mission it does fly back to the helo carrier but it does not land.  I think you might understand better if you look at the addon pcusn_tarawa.  Read the read me and tell me if there is anything I can do to fix this problem.  Like you, I like to use helo's in all of my missions and would really like to solve this problem.
Title: Re:How do I assign a helo pad to a specific helo?
Post by: Chris Death on 25 Nov 2005, 18:53:15
Quote
owner:
_group =  _this select 0

position:
_pos = _this select 1

target:
_target = _this select 2

Is this correct?

Yes

About CoC i can't help you as a) i'm not involved into ofp mission
making anymore (now i'm making addons) and b) i didn't investigate CoC's scripts deep enough to be able to give
you an answer on that.

However, there's Spinor or Dinger (both sometimes active
on these boards) and BN880 (active on the official forums)
who could for sure give you an answer on that if you ask
them in a pm.

:edit - and about the pcusn_tawara: the chopper will land there
where the waypoint is - note it's not landing - it's more a tricky
way around by move to position of waypoint and changing the
flying height. You don't need a h-pad for that - you can even let
it land on a rooftop of a house.

~S~ CD