Home   Help Search Login Register  

Author Topic: Group moveincargo problem  (Read 2933 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!