Home   Help Search Login Register  

Author Topic: Group moveincargo problem  (Read 2930 times)

0 Members and 3 Guests are viewing this topic.

Specnaz

  • Guest
Group moveincargo problem
« on: 25 Nov 2002, 02:01:13 »
Ok, I'm doing this mission and having some problem, I made a pilot named Pilot1 and empty Mi-17 called trans1 , there is one small group of VDV paratroopers which i wrote this in commanders init field: Recon = group this;
so i made 2 triggers and on 1st one in onact taped: Pilot1 moveindriver trans1 ...it works fine and pilot on my radio signal get in helo, but in second trig. i tape: Recon moveincargo trans1; and when i give them radio order Bravo, in upper left corner writes: Recon moveincargo trans1 I#I'; error moveincargo: Type Group expected Object. same error occurides with command assignascargo.What should i do? ???
Please help!  :'(

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Group moveincargo problem
« Reply #1 on: 25 Nov 2002, 02:18:58 »
u just have 2 change da code 2

"_X moveincargo trans1" foreach units Recon

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #2 on: 25 Nov 2002, 19:52:13 »
Thanx, that thing worked just fine, but when i write assignascargo it doesnt work.
any suggestions?  :P

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Group moveincargo problem
« Reply #3 on: 25 Nov 2002, 22:07:36 »
donno  :-\

"_X assignascargo trans1" foreach units Recon

works fine 4 me  ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Re:Group moveincargo problem
« Reply #4 on: 25 Nov 2002, 23:12:29 »
The command "_X assignascargo trans1" foreach units Recon will only tell the group what vehicle the SHOULD get in. You still have to order the units into the vehicle with an ORDER GETIN command. The syntax should be as:
"_X assignascargo trans1" foreach units Recon; "[_X] ORDER GETIN TRUE" FOREACH UNITS Recon

Hope this helps.
Calamity

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Re:Group moveincargo problem
« Reply #5 on: 25 Nov 2002, 23:15:32 »
The command "_X MOVEINCARGO trans1" foreach units Recon will place the units in cargo. Not very realistic.
The command "_X assignascargo trans1" foreach units Recon will tell the group only what vehicle they SHOULD get in.
 You still have to order the units into the vehicle with an ORDER GETIN command. The syntax should be as:
"_X assignascargo trans1" foreach units Recon; "[_X] ORDER GETIN TRUE" FOREACH UNITS Recon

Hope this helps.
Calamity

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Group moveincargo problem
« Reply #6 on: 25 Nov 2002, 23:30:42 »
dat wat u wanted ?  ;D dere is only1prob in wat Calamity said

Quote
"[_X] ORDER GETIN TRUE" FOREACH UNITS Recon

should b

Code: [Select]
(units Recon) ordergetin true
da ordergetin is 1 word

LCD OUT
« Last Edit: 26 Nov 2002, 02:28:16 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #7 on: 26 Nov 2002, 00:01:04 »
You guys are actually worth of 2 golden stars in ranks  ;) ,
it worked just fine! Ja rule guys!
thx

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #8 on: 26 Nov 2002, 00:21:58 »
Hey guyz, I forgot to ask, and what when the pilot is in the same group with those Recon guys and I want him go get in as pilot and other in cargo, very often happens to me that pilot goes to cargo, what should i add to that code?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Group moveincargo problem
« Reply #9 on: 26 Nov 2002, 00:48:48 »
quite simple actualy  ;) ;D

Code: [Select]
"_X assignascargo trans1" foreach units Recon
pilotname assignasdriver trans1
(units Recon) ordergetin true

LCD OUT
« Last Edit: 26 Nov 2002, 02:20:20 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Group moveincargo problem
« Reply #10 on: 26 Nov 2002, 01:53:24 »
Welcome to the forums guys...

Just a bit of clarification on the ordergetin command...

You shouldn't have to use a foreach with this command... it's designed to apply to a group of soldiers!

For instance, I'll underline the arrays in this line:

"[_X] ordergetin true" foreach units Recon

The purpose of any foreach is to apply a command to an array of units. However the ordergetin command needs to be given an array (which is what the square brackets are) to work properly.
So effectively what you are doing, is assigning two arrays where one would do. The correct usage of the command looks like this:

(units Recon) ordergetin true

The foreach is redundant in this case ;D

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #11 on: 26 Nov 2002, 02:24:09 »
ok ok ok, wait guys, after I lost whole night with this cr*py mission and couldn't make what i wanned, I'll just put it here and you try to solve the problem... the problem now is, i manage to get recon into Mi-17 and than they fly overcoast and want do disembarg by eject (not nessesarly) but almost all get killed.Later i wanna that that helo go back to base when i order it by radio (R: Horosho ljotchik,pashol domoj) :))
and land there and pilot get out. and i wanna that recon team that stayed overcoast go explore around in "combat" mode and later hide in woods and over in "safe" mode.(and perhaps light a fire) :)
I know that you're magicians, I believe in you guyz so try to do at least some of my requests, please. (when you come to Russia you all got vodka on my bill, :))  :cheers:  )

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Re:Group moveincargo problem
« Reply #12 on: 26 Nov 2002, 02:41:16 »
Sui, Thanks for that tip. It's gonna save me a LOT of codeing!
Specnaz, I'll try to take a look at your mission. Right after I figure out how I Fat Fingerd some code in one of my own missions. (see earlier post: Throwing Smoke Shells)

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #13 on: 26 Nov 2002, 12:12:32 »
Ok, you try to work on my mission.
I'm following your post about throwing smokeshell, I'm working on it, and if i succees i will tell you.

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Re:Group moveincargo problem
« Reply #14 on: 27 Nov 2002, 04:22:16 »
Specnaz,
I just tried to look at your mission. Unfortunately, however, I do not have all the patches you used in the mission. Including the map! I only have installed: The original OFP OEM, no service packs. and the Red Hammer Addon. Again, OEM with no service packs. If you can distill your mission down to a standard map with no special units I could then take a look at your waypoint problem.

Calamity strikes again!

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #15 on: 27 Nov 2002, 12:34:48 »
Ok, I'll do it today and send it online

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #16 on: 27 Nov 2002, 13:14:50 »
OK, i made optimased mission for your req. (i hope)
now the problem is, SpecNaz manage to eject from Mi-17 and get down alive but this is other island and terranin is at 0 height ,and on Nogova place where i wanted them to eject is , i dont know how to say it in eng, it is from 0 to 50m height, hope you understand what i mean and when they jump out parachute opens but to late and most of them get killed. i wrote a script flyinheight but i didnt really see if it work, so take a look, and try to put waypont of disembarg on some hill maybe that will be similar like Nogova problem. And ofcourse try to make those other things with this mission like i wrote on few previous posts. thx!

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Re:Group moveincargo problem
« Reply #17 on: 29 Nov 2002, 20:13:27 »
Specnaz,
I have been looking at you script. Nice, I couldn't get the mission to load in my editor, but I have used the script in an attempt to solve your problem. Although I have not resolved the probelm I think I have isolated the cause. When the script EJECT's a unit the chopper returns to pick up that unit because the unit is still "assigned" to the cargo of that chopper. I see in your script that you attempted to "unassign" the unit from the chopper after it has been ejected. This does not appear to work. Neither does "unassigning" the unit before ejecting. It is like that code is never executed.
A work arrounds I am still trying to perfect is:

Adding the player to the cargo of the heli then sending the chopper on it's way. When the chopper gets over the "LZ" it fires a trigger that creates a new player OUTSIDE of the heli. It then creats a parachute object and moves the player into the chute. It repeats for each unit in the group.
Some problems that I still have to work out are
1) Creating the player and the parachute AFTER the game has started.
2) If I can't create the player and chute DURING the game. Create them before and switch which unit is the player.

As you can see I am trying to do things that give the player the APPEARANCE of ejecting in mid flight. Not actually doing it.

I re-read your original thred post and wanted to know if ejecting mid flight was required. Or, if you could just insert your group with a landing and that would work for you as well?

Let me know,
Calamity

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #18 on: 29 Nov 2002, 22:57:10 »
OK OK OK, I made it picturized, take a look, maybe it'll be more clear to you about my ideas. :cheers:

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Group moveincargo problem
« Reply #19 on: 29 Nov 2002, 23:04:34 »
I fixed da script (who wrote dis ? not verygood  :-\)

check dis script

LCD OUT

P.S - u should delete da - Hint "hi" - line, i used it 2 test ;)
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #20 on: 30 Nov 2002, 01:28:04 »
Hey thx, the script worked, btw the script you said is worng, I downoaded from ofpec.com :) . OK, now the soldiers get to the ground alive, but there is still one problem, they got into helo with radio Alpha, and ejected by exec of script, now i wanna give them thir first waypoints on the other side of island so they can move around islan and recon around in "combat" mode. How do i do that?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Group moveincargo problem
« Reply #21 on: 30 Nov 2002, 02:04:20 »
not everything here is good ;D

u can do deir WPs in 2 wayz

1) use domove nd move commands

2) just put da first WP wid schyno (F5) wid da radio nd den make da oder WPS so dey wait till da radio is activated 2 continue deir path, just set em 2 combat (setbehaviour command) 2 change da behaviour

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #22 on: 30 Nov 2002, 22:39:01 »
S*it, dont know wha happened, but mission worked 2 times just fine and than suddenly every next time i wanted it to play it kick me out from game.I tryed new nvidia drivers for XP but no use, it was even worse, comp couldent detect monitor and it didn't want to enter the OPF , now i changed monitor from other comp., game works fine, but my mission every time kicks me out without the expl. anyone know what could be the problem? this started just after i made 1st way for group move. Oh, LCD, i'm not accusing you for anything, guess something is wrong with my comp.Can anyone help?please

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Group moveincargo problem
« Reply #23 on: 30 Nov 2002, 23:30:36 »
Im sur ots not cuz of me cuz it worked 2 times right  :P

4 support go 2 da official forums (in da official site  ;)  ;D) nd ask em

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Specnaz

  • Guest
Re:Group moveincargo problem
« Reply #24 on: 02 Dec 2002, 01:36:45 »
ok ,no problem, guess something's wrong with da mission , kick me out every time after 1 min of playin