IPB


Welcome Guest ( Log In | Register )

 Forum Rules Forum Rules
 
Reply to this topicStart new topic
> Squad in helicotper help.
Kocrachon
post May 15 2009, 19:59
Post #1


Junior Member
**

Group: Members
Posts: 16
Joined: 11-August 08
Member No.: 3,880



Ok, this is so simple and I don't know why it isnt working for me, so maybe you guys can help me.

I am trying to create a mission and have a helicopter come and pick up my units. I am trying to do this with out the waypoint system.

Here is what I have going on so far.

BlackHawk helicopter flys to its waypoint, I am using this as my init field.


CODE
Helo1 land "GET IN"; dostop Helo1


After that I have a trigger set like this.

Condition Field


CODE
({ (not (_x in Helo1)) and (alive _x) } count (units (Unit1))) == 0


Init field


CODE
Helo1 dofollow Helo1


And I have my squad leader set to this

CODE
Unit1 = group this



This issue I am running into is the helicopter will take off the second any player gets into the blackhawk. I want it to wait for all of the players in said group who are alive to get in. If I say group1 in helo1, it will wait unti all players are in, even if they are dead. So I use the said above script to do a check for all alive players...

The blackhawk is landing on the outskirts of town on an invisible H, so I dont want it to land where my guys are...
 
Quote Post
Linker Split
post May 15 2009, 20:45
Post #2


literally the BIG BOSS of OFP
Group Icon

Group: Addon Maker
Posts: 1,532
Joined: 12-November 06
From: Bari (ITALY)
Member No.: 66



you should modify the condition field like this:
CODE
({ (_x in Helo1) and (alive _x) } count (units (Unit1))) >= 3


then just set the min, med, max value to 5 in the trigger options, and then in the ON ACTIVATION field:

CODE
Helo1 flyInHeight 30; Helo1 domove [0,0,0]


--------------------
Visit my blog about Poker at Blogspot.com


-->TUTORIAL ON HOW TO MAKE NORMAL MAPPING IN ARMA!<--
-->MATERIAL EDITOR TUTORIAL!<--
-->DOWNLOAD MY HDT ISLAND!<--
judgement = hypocritical and slightly deluded
 
Quote Post
Kocrachon
post May 15 2009, 22:18
Post #3


Junior Member
**

Group: Members
Posts: 16
Joined: 11-August 08
Member No.: 3,880



QUOTE(Linker Split @ May 15 2009, 20:45) *
you should modify the condition field like this:
CODE
({ (_x in Helo1) and (alive _x) } count (units (Unit1))) >= 3


then just set the min, med, max value to 5 in the trigger options, and then in the ON ACTIVATION field:

CODE
Helo1 flyInHeight 30; Helo1 domove [0,0,0]



Ok...slight confusion. I am at work so I cant directly attempt to try this...

CODE
({ (_x in Helo1) and (alive _x) } count (units (Unit1))) >= 3


Wont this mean it will require at least 3 people in the helicopter?


CODE
Helo1 flyInHeight 30; Helo1 domove [0,0,0]


As for this, what does the domove when combined with [0,0,0] do? Wont that move it to a coordinate away from my officer?
 
Quote Post
Kocrachon
post May 16 2009, 08:31
Post #4


Junior Member
**

Group: Members
Posts: 16
Joined: 11-August 08
Member No.: 3,880



So I did as you said... and it appears that the Blackhawk just flies off out into the middle of no where with out ever picking up my soldiers. At the start of the mission I just see the helicopter off and fly away to no mans land.

EDIT:

I also noted another oddity.

When I have a blackhawk on the ground, engine off, and with a waypoint and its on the ground in a dostop init, it will wait there if I get in and the rest of my squad is on the outside (just me in the blackhawk).

However, if all of my squad except me gets in it, it will take off leaving me, the squad leader, behind. So for some reason it will leave me behind. And this is with OUT a trigger to take off.

So for some reason when my squad enters the blackhawk all of a sudden the dostop ends itself, even with out a trigger to tell it to dofollow...

This post has been edited by Kocrachon: May 16 2009, 08:57
 
Quote Post
Linker Split
post May 16 2009, 09:22
Post #5


literally the BIG BOSS of OFP
Group Icon

Group: Addon Maker
Posts: 1,532
Joined: 12-November 06
From: Bari (ITALY)
Member No.: 66



for what I understood, you want the heli to pick you and your squad, and then move to a position in the map, is it right?
then when at least 3 of your squad are in, it will wait 5 seconds, then it will fly in height 30 and move somewhere (you can change it to domove getpos "someobjectinthemap")


--------------------
Visit my blog about Poker at Blogspot.com


-->TUTORIAL ON HOW TO MAKE NORMAL MAPPING IN ARMA!<--
-->MATERIAL EDITOR TUTORIAL!<--
-->DOWNLOAD MY HDT ISLAND!<--
judgement = hypocritical and slightly deluded
 
Quote Post
Kocrachon
post May 16 2009, 17:39
Post #6


Junior Member
**

Group: Members
Posts: 16
Joined: 11-August 08
Member No.: 3,880



QUOTE(Linker Split @ May 16 2009, 09:22) *
for what I understood, you want the heli to pick you and your squad, and then move to a position in the map, is it right?
then when at least 3 of your squad are in, it will wait 5 seconds, then it will fly in height 30 and move somewhere (you can change it to domove getpos "someobjectinthemap")


That is correct, but I ran into a new issue...

doStop is not working.

For some reason, if I set a helicopter with the do stop command, the second a single person enters it, it moves. Even if I do not have a trigger set to tell it to dofollow. So for some reason the dostop command is failing. I also tried disableai "move" but the helicopter is still flying away.

So for some reason the blackhawk is moving even when given a command to not move.
 
Quote Post
Kocrachon
post May 16 2009, 18:52
Post #7


Junior Member
**

Group: Members
Posts: 16
Joined: 11-August 08
Member No.: 3,880



So I think I found a workaround for my problem.

Apparently I have to do this for my waypoint.

CODE
Helo1 land "GET IN"; dostop Helo1; Helo1 stop true;


Appreantly it takes a dostop and stop command to get the thing to not move.
 
Quote Post

Fast ReplyReply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 15th November 2018 - 07:34