Jump to content
Sign in to follow this  
Op4 BuhBye

In vehicle check

Recommended Posts

I need to check for AI boarding a shilka (when they are in it) in the condition field of a trigger. Can anyone cive the the string? Thanx.

Share this post


Link to post
Share on other sites

Any AI or a specific AI?

how about:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">(count crew myShilka) > 0

Share this post


Link to post
Share on other sites

The deal is if the crew gets in you fail. You have to killem before they make it. So I need a check that tells me when they got in.

Share this post


Link to post
Share on other sites

Just tried it, Works Perfect! Thanx Peanut, you da man.

Found a new issue. Im using

not (alive unitname) and not (alive unitname)

In the condition field of a trigger and though I get no errors it doesnt work?

Anyone know why?

Share this post


Link to post
Share on other sites
not (alive unitname) and not (alive unitname)

Try:

(not (alive unitname)) and (not (alive unitname))

Share this post


Link to post
Share on other sites

I used

(not (alive acc4)) and (not (alive acc5)) and (not (alive acc6))

and

hint "Shilka 2 has been disabled";"s2" setmarkertype "empty"

In the On Act field and it still didnt work?

Share this post


Link to post
Share on other sites

It helped alot to find out Im a moron and used the unit name "aac" instead of "acc". Thanx guyz

Share this post


Link to post
Share on other sites

Ok guyz I got this mission working 100%. I tested it in the editor, I tested it in MP on my own server, THEN... I uploaded it to a DS and the choopers wont land??? They are on a synched WP "transport unload" and "get out".

The chopper flies right up to 90m away from the LZ and hovers. BUT... it will land with no players in it?huh.gif I even tried

helo1 land "get out"

And that didnt work on the DS either. Anybody got an idea? The mission isnt much good if you cant get out of the chopper.

Share this post


Link to post
Share on other sites

I've got this to work in one of my missions.

I will post what i've got.

I'm experiencing problems with the units not getting in to the chopper.

Sometimes only 1-2 gets in...

Share this post


Link to post
Share on other sites

I presume players are in the heli cargo? Add the following code to the On Activation of the LZ WP.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">myHeli flyInheight 2

<s>In the Condition for the heli's next WP put:

(count crew myHeli) < 1

Edit: or < 2 if you also have a gunner.</s>

Share this post


Link to post
Share on other sites

I tried

(count cargo helo1) < 1

And got an error. So I tried

(helo1 count cargo ) < 1

And I got no error but it doesn't work? The chooper just sits there.

Share this post


Link to post
Share on other sites

'Cargo' is not a command, and, sorry Mr.Peanut, but your methods are very poor.

In order to force an AI chopper to land with the best results you need to do three things. Stop the pilot from following their waypoints (with doStop), order them to land (with the land command), then use flyInHeight only after they're on the ground to keep them there.

Share this post


Link to post
Share on other sites

D@£$## these boards are slow some times aday!!

Share this post


Link to post
Share on other sites
I tried

(count cargo helo1) < 1

And got an error. So I tried

(helo1 count cargo ) < 1

And I got no error but it doesn't work? The chooper just sits there.

(count crew helo1) - mentioned by Mr.Peanut above.

And Kyle.

Thats just as "bad" don't you think?

As teh chopper will have the engine on, and that is not an option if you want teh chopper to await a "pick us up plx" request.

Op4 BuhBye

This is what I did in my MP mission

1: Put a heli-pad invisible near the "unload" area.

2: Place a "transport unload" WP for teh chopper

3: Place a "get out" wp for the group.

4: Synchronize these two wp's

= success.

(2-3 are obviously near or on-top of the invisible-h)

What bothers me now, and which I mentioned earlier, is that not all units are loaded INTO the darned chopper at the "load" area...

But thats something completely different

Share this post


Link to post
Share on other sites

Taurus that is exactly to a T what I did and it doesnt work on a deticated server. Ill give Kyles suggestion a shot.

Share this post


Link to post
Share on other sites
Taurus that is exactly to a T what I did and it doesnt work on a deticated server. Ill give Kyles suggestion a shot.

ok, didn't know that(nor read it, sorry)

It sucks BIGTIME that it doesn't work on a dedicated server environment F#$K YOU BIS seriously!!

The same PIECE OF CR@P was in OFP too!

Didn't you learn anything?

Just "hotted" the graphics engine did you??

Why WHY should things differ from a "local" host and on a dedicated server!! pistols.gif

Share this post


Link to post
Share on other sites

Well Taurus I have to agree. This is one of the things I was talking about when I said they over complicated things. Why put the stuff in the editor if it doesn't work? I am finding soooo many things that were so simple in OFP that are just absurd now. Very dissapointing. confused_o.gif

Share this post


Link to post
Share on other sites
I am finding soooo many things that were so simple in OFP that are just absurd now. Very dissapointing. confused_o.gif

Well, the same issues were in OFP too, and that was the number ONE reason to why I abandoned OFP.

The number TWO reason to why I abandoned OFP, was that when the missions shipped with the game(only a couple as it was the EU version of OFP...) didn't meet my expectations of what is fun or not, I started to build my own, and thats why the mission editor are there right?

The editor is divided into two categories.

1: The "Place enemy, place yourself, go kill enemy xD"-type of missions, and for which all tutorials are designed for.

I've played too many of these already, and ... they ....

2: The "Do a dynamic and semi-realistic"-type of missions.

NO WAY!!! Because then you need to be either a BIS developer or a person with too much free time to spend on reverse-engineer all files in the game, read all pages on internet and etc..

And if you are not such a person you are screwed beyond belief.

I know my limits, but I also know what I know about the scripting in this game, BUT what I can not, and will NEVER understand is why it differs from the 2 types of server environments this £$##@ game is run in... Well ok, 3 if you add the preview of the mission, where ALL things work ok!

(also why I put the first line in my signature ~5 years ago...)

Same thing goes for the ARMA editor.

Evolution in all honor(the concept) but its TOO large!

I haven't got 8-10hrs to spend on one match sorry, neither do my friends(all having a 8-17 work) + families and etc...

What is left?

Building own smaller versions? and adding a couple of things, Ah yes, the answer is still NO!!!

And added to all of this the ENDLESS workarounds for the MP differences...

In all other software situations a workaround is used to get round a bug until a sp or hotfix is made...

I will abandon ARMA for the same TWO reasons...

Wonder if this game is refundable...

Share this post


Link to post
Share on other sites

The_Taurus, your incompetence is no reason to get angry at BIS. There are about a 100 different ways to get a group of infantry to board a chopper. I guarantee you that at least 90% of those work in an MP envorinment, if not all. I'm sick of you and people like you complaining to BIS just because you can't figure it out. I've made countless missions in both OFP and ArmA and I've never been in a situation where I couldn't get a group if infantry into a chopper, both SP and MP. If I can do it then certainly anyone can. So until you change your attitude I refuse to give you any further help.

Share this post


Link to post
Share on other sites
I refuse to give you any further help.

Dude. You shouldn't talk about attitude!

Your a complete ..... from time to time, flaming others by stating that you are the superior being and so on... "mr know it all"

I could search for the replies you've printed by searching these boards but I've got no time for it right now!

And seriously IF you do have the superior skills, WHY NOT WRITE THEM DOWN IN THE WIKI?

If you got 100 ways of doing the "unload" thingy in MP why not share it with the rest of us, as it would help everybody?

Your like the consultant who wouldn't lift a finger unless you got paid or got credit for your work, i.e. "signed /KyleKyknik"

I'm yet to see where you actually wrote a reply in a nice manner and etc, not stating that "no don't do like blabla said, do as I do"

And actually I'm not counting on you "mr know it all" to reply nor assist me in my missions...

Stating that ALL guys here asking for something are incompetent LOL?

Community here we go...

There _is_ a problem with the different mp behaviors and we all know it, including you mr "kyle"

I know your type, i've been around since 2002 so, until YOU could answer as a constructive and mature poster who are wanting to help the community in a proper way, I'm the one how are "sick and tired" not you!

Share this post


Link to post
Share on other sites
I refuse to give you any further help.

Dude. You shouldn't talk about attitude!

Your a complete ..... from time to time, flaming others by stating that you are the superior being and so on... "mr know it all"

I could search for the replies you've printed by searching these boards but I've got no time for it right now!

And seriously IF you do have the superior skills, WHY NOT WRITE THEM DOWN IN THE WIKI?

If you got 100 ways of doing the "unload" thingy in MP why not share it with the rest of us, as it would help everybody?

Your like the consultant who wouldn't lift a finger unless you got paid or got credit for your work, i.e. "signed /KyleKyknik"

I'm yet to see where you actually wrote a reply in a nice manner and etc, not stating that "no don't do like blabla said, do as I do"

And actually I'm not counting on you "mr know it all" to reply nor assist me in my missions...

Stating that ALL guys here asking for something are incompetent LOL?

Community here we go...

There _is_ a problem with the different mp behaviors and we all know it, including you mr "kyle"

I know your type, i've been around since 2002 so, until YOU could answer as a constructive and mature poster who are wanting to help the community in a proper way, I'm the one how are "sick and tired" not you!

You've been here since 2002? And you're that stupid about things in ArmA and OFP crazy_o.gif.

Before telling other more respected members to post more "mature" have a look at your own posts, SiSi?

I think you should also take the time to read and re-read this qoute

Quote[/b] ]If you can't handle any of it, please leave internet and life.

Share this post


Link to post
Share on other sites

It sucks BIGTIME that it doesn't work on a dedicated server environment F#$K YOU BIS seriously!!

I strongly recommend you take some time outside the forum to cool down. Statements like the one above are not tolerated here, you should know that if you're around since 2002.

And now we go back on topic.

Share this post


Link to post
Share on other sites

Well I certainly didnt mean for this when I put this up.

Look Taurus I understand your frustration. And I share it but this is a very loyal community and you opened yourself up to the firing squad with that post. Im not saying I dont agree with some of it, Im just saying that 1, you just asked for trouble and 2, your wording definatly wasn't going to get a positive result. But I do understand.

Kyle I hope by now you know I respect the knowledge you posess for this and sometimes I think you take that for granite. Learning this stuff is hard, Its like learning a new language. You dont remember it the first time and you dont understand what you are hearing.

This stuff is complicated and difficult, more so with no backround in it. I dont know what your backround is but I have a feeling that your total exposure to SQS and SQF insnt just this game. If it is, you spend way too much time editing! lol. I could type out a long list of thing that BIS made more complicated in ArmA but I hate typing.

But honestly what is the sense of putting an editor in a game if you have to be a programer to use it? Most people dont have the time to learn all this. Why should loading a truck and trasporting troops be easier than a chopper? If you cant script, you cant use choppers with AI flying. In the modern day battle field chppers are everything. Im just tring to say that just because its easy for you doesnt mean its easy for everyone.

Share this post


Link to post
Share on other sites

<s>The correction to my suggestion:

(count crew heli) < x

will work, is simple, and is a good way.  The flyInHeight forces the heli down at the waypoint, and the crew count condition will lock the waypoint following until the condition is satisfied. There are two caveats:</s>

1) The helicopter land waypoint must have enough clear area around it.

2) You must come up with a satisfactory condition for the following waypoint. In hindsight a better condition would be:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({_x in crew myHeli} count units myGroupName) == 0

or

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">({_x in crew myHeli} count myUnitArray) == 0

Finally, all the pissing contests in this thread are an immature ego fueled waste of time and of no help to anybody, especially the person asking for help. Grow up children. Go to OFPEC instead where you can get good advice with none of the attitude, fer chrissakes...

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  

×