Jump to content
Sign in to follow this  
dar

Helicopter doesn't wait for me

Recommended Posts

Hey guys, I'm new to this forums beacasue I just bought Arma 2 OA and really liked it. If im wrong with my thread here, I'm very sorry, also if this was answered 10 times before. As I said, I'm new to this.

Now I wanted to make some missions on my own, watched some tutorials and made a little system to call an extraction helicopter wherever you are. It almost works....

This is how I did it:

I made a base with a Blackhawk named heli, a "Player" named "Player" and a Trigger with activation on radio:bravo that is syncronized with a load-wayopint of the Blackhawk on the player with an radius of 20. This waypoint also has a waiting time of 10sec in min, max and mid and the code on activation heli land "Get in" .After that, the helicopter flies back to base and kicks you out.

The problem is, that the Blackhawk hovers (or lands when I replace "get in" with "land"), but not waits. He just stays hovering for a second and then flies back to the base. This second may be enogh for me as Human, but it is never enough to order some AIs to board it.

I tried to tell him to "sleep" for 10 seconds, tried to set the waiting time to 10000 in min, max and mid. Its always the same.

So, has anybody here a solution for me or an idea?

thx in advance,

Dar

Share this post


Link to post
Share on other sites

Thanks for the quick reply but unfortunatly this isn't a great help for me. The Blackhawk in the example moves to a static waypoint and stays there with another "hold position" waypoint. I can only set one waypoint on my player.

Why is the helicopter not waiting for me? I told him to continue with the next waypoint when he waited 10 seconds.

Share this post


Link to post
Share on other sites

Ai-LZ.jpg

---------- Post added at 02:38 PM ---------- Previous post was at 02:37 PM ----------

Remember to sync F AND C.

Share this post


Link to post
Share on other sites
I can only set one waypoint on my player.

Umm... are you trying to do this on the fly during a game using your personal waypoint (shift-Left click on the map)? Because if so, that won't work at all. Otherwise I can't think of a reason you'd have a 1 waypoint limit on a player.

You could build in transport using SOM perhaps, that includes a wait-for-me-then-mapclick option.

Share this post


Link to post
Share on other sites

I also tried a Transport over SOM, but it doesn't work. Guess I will ahve to buy the whole game for some features like this (supplydrop also doesn't work, many spoken sentences are missing when I order different types of artillery).

I didn't create a personal waypoint.

How exactly can I place another waypoint on my player? If I press F4 and double-klick on my player to create a new waypoint for the Blackhawk, I just open the first one.

Share this post


Link to post
Share on other sites
Guess I will ahve to buy the whole game for some features like this

Huh? What do you have if not the whole game? All of this stuff works just fine in ArmA2Free even.

F4 Waypoints will place waypoints for the currently selected editor unit. So you'd need to get waypoints for both yourself AND the Blackhawk. Never put waypoints on top of each other, near each other is good enough. Try what Speeder has in his image above but lay out the waypoints for the players group first then for the Blackhawk.

Share this post


Link to post
Share on other sites

I just have OA

If I put waypoints neer to my player, how can I link them to him? And how do I create a waypoint for two units?

Edited by Dar

Share this post


Link to post
Share on other sites

Click on your player, his icon will be darker (if you click off him you'll see his icon fades in the editor). With the player selected press F4 then click somewhere else on the map. This will place a waypoint. Click somewhere else again and you'll place a second waypoint for the same group.

Waypoints are for groups. If you want two units to have the same waypoints group them up. If you want them separate but to have the same waypoints either make new waypoints for the second unit near the first ones or use the copyWaypoints command.

Share this post


Link to post
Share on other sites

I know how to place waypoints, but thanks. But my actual question was, how to link a waypoint to an unit, without placing it on the unit. Also I don't want to have the waypoints for both the helo and the player. The helo should just fly to my position, land, wait 10 seconds and fly back.

Do I need a helopad to command a landing for longer time?

I know there is a commadn named "waitUntil". Is there another one like "player-is-In-Cargo-vehicle"?

To refer to speeders picture: I also tried something like this. Helo comes, lands for a moment, but does NOT wait for me but flies back to the base immediatly.

Edited by Dar

Share this post


Link to post
Share on other sites

scripted solution using no waypoints.

pilot1 doMove (getPos helipad);
waitUntil {sleep 1; unitReady pilot1};

doStop pilot1;
heliname land "GET IN";

waitUntil {player in heliname}; // wait until player is in heli.
//waitUntil {({_x in heliname OR !alive _x} count units group player) == (count (units (group player)))};  // optional, wait until all in player group is either dead or inside heliname.
pilot1 doMove (getPos spomewhereelse);

Share this post


Link to post
Share on other sites

Ok... I never used a script. lets see how it works

Ok, lets say I'm now closer to my objective. I copied parts of this (doStop pilot1;

heliname land "GET IN"; ) and (waitUntil {({_x in heliname OR !alive _x} count units group player) == (count (units (group player)))}; ) to the on Activation panel of the waypoint where the heli should land. I named my group "delta" by writing in the properties of my player "delta = group this". Hope this is wright. So I have (waitUntil {({_x in heliname OR !alive _x} count units delta) == (count (units (delta)))}; )

the helo now stops and waits for me - or one of my group members. When only one guy or I board the chopper, it flies away. What did I do wrong?

---------- Post added at 07:00 PM ---------- Previous post was at 05:31 PM ----------

No idea?

---------- Post added at 07:37 PM ---------- Previous post was at 07:00 PM ----------

Now, how can I order the helo to stay 'til everybody's inside? I tried the script above and also the script of the first demo mission ({alive _x && _x in blackhawk} count units delta == {alive _x} count units delta). None worked.

Edited by Dar

Share this post


Link to post
Share on other sites

It needs to go in the condition of the way point and not the activation and make sure heli name matches the name in the code.

Share this post


Link to post
Share on other sites

XD works. Thanks a lot

Share this post


Link to post
Share on other sites

I'm sorry to have to bother you again with this, but when it worked I had only luck that all of us jumped into the helo the same time. I was so happy about it that I didn't want to test it some times... Now it still doesn't wait for the others or me. When only one guy enters the helo - it flies away. I tried everything. Putted this script(delta is my group and Blackhawk me helo)

waitUntil {({_x in Blackhawk OR !alive _x} count units delta) == (count (units (delta)))};

in the waypoint activation panel, this

({_x in Blackhawk OR !alive _x} count units delta) == (count (units (delta)));

into the next waypoints condition - nothing works. Any idea or did I do something wrong?

Share this post


Link to post
Share on other sites

can't open, cause it's an ".utes" . Like I said, i only have OA.

Share this post


Link to post
Share on other sites

Thank you. I now entered that code. But as long as I can say - I did exactly that. I think the problem is somewhere else. the helo lands, takes one person and starts again to his next waypoint, where I set the code as condition. THERE he stops and doesn't move anymore. Shouldn't he check if everybody is inside when he's about to start? And not when he's already arrived at the location? Its wierd...

Link to my mission: http://www.gamefront.com/files/20654769/Patrol.Takistan.7z (if it helps)

Don't wonder about some strange spellings ... I'm German

Edited by Dar

Share this post


Link to post
Share on other sites

you cant use waituntil or sleep directly in fields of a trigger.

we can however use spawn (same function as script with some restrictions ( no comments))

place this in the on act of the MOVE wp where he should pick up someone.

_null = heliname spawn {
_pilot = driver _this;
doStop _pilot;
_this land "GET IN";
waitUntil {({_x in _this OR !alive _x} count units group player) == (count (units (group player)))};
_pilot doMove (getPos _this);
};

wich should make him land wait for all players group to be either inside or dead.

then he will move to his current position, and continue to his next wp.

Share this post


Link to post
Share on other sites

Demonized is right if you had used -shownscripterrors you whould have seen it give an error http://forums.bistudio.com/showthread.php?t=121163

I removed the waituntil as it's not needed anyway.

The move waypoint after the load waypoint should be placed close to each other, if they are too far apart the heli will pop back into the air.

From the mission it was hard to test, I had to move the waypoints around a little as they were to close to test but you probably know what your doing.

Edited by F2k Sel

Share this post


Link to post
Share on other sites

Ok, lets try it - is it possible to don't say him "getPos" but something like "get(next)waypoint"?

@F2K Sel: I can't place the waypoints closer to each othe beacause the system should be flexible. So as long as I can't bind this 2nd move waypoint to my player - I'll have to place it near the base.

Edited by Dar

Share this post


Link to post
Share on other sites

Dar, can you explain exactly what you want to happen? Don't worry about details or code or waypoints -- just what you want to work and how you want to interact with it.

Example:

I want there to be a helicopter at the base that will come pick me and my group up at a specific spot and fly me back to base.

or

I want there to be a helicopter that I start in that flies me to the AO and drops me off then I don't care what happens to it.

or

I want to be able to use the radio to call for a helicopter to come pick me up, wait for me to board, then drop me off where I click on the map.

Share this post


Link to post
Share on other sites

Looking at his mission I would say he needs a click on map system and do away with waypoints.

Share this post


Link to post
Share on other sites

with this script, the helo doesn't even land but flys back immediatly

Ok to say what I want:

I want an helo at a static base, that waits for my call over radio - bravo. When I called him, he should start and fly to my position, wherever I am on the map. There, he should land to pick me AND my squad of AIs up before he returns to base, lands an kicks us out. After that, I awnt to be able to repeat this procedure as often as I want (doesn't work at the moment)

This works at the moment - I can call him per radio. He flies to my position wherever I am. He lands to pick us up. If I order the AIs to mount it, he waits til they're inside and flies back without me. If I board it first, he flies back without the AIs. If I order one AI to board it, he waits for this guy and flies away without me and the rest of my squad. If i order the AIs to board it and enter the helo shortly after they entered it (helo is about to take off), he flies back and lands like I ant it. Unfortunatly he won't do all this again when I call him again. Thats it.

Edited by Dar

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×