Home   Help Search Login Register  

Author Topic: Newbie in need of answers!  (Read 880 times)

0 Members and 1 Guest are viewing this topic.

Offline 999chris

  • Members
  • *
  • I'm a llama!
Newbie in need of answers!
« on: 24 Mar 2005, 03:35:53 »
Ok... and what i want to achieve...

3 UH60's containing a group of 12 infantrymen each in cargo, Starts off flying in the southwest of Everon (with the groups on board) and then flies to a town in Everon and unloads the men, the UH60's fly off elsewhere while the infantry go seize the town. Once the town is seized I want the UH60's to fly back to the town and pick up the men again and drop them off back home.

WHere I've got to...

I can get the groups to start off in choppers (by placing the "this moveincargo heli1" script in every single units init field that I want in Heli1 and so forth probably the wrong way to do it) I can get the CHoppers to fly to the town unload the people...

Cut to the chase... Basically I can get all the way upto the bit where the Choppers pick up my men.

On the "LOAD" waypoint on the pick-up leg... ive enetered the ususal ("_x assignascargo heli1" foreach units grp1; "[_x] ordergetin true" foreach units grp1) in the activation field along with ([heli1] allowgetin true) and (grp=group this) in the heli's and Group leaders init fields. But when the chopper goes to the waypoint he flies off. Ive done everything correctly im sure, it seems as though once a group leaves a chopper it can't get back in.

I have many other questions about boarding choppers and then transferring to trucks and stuff but I'll ask another time, ive already written an essay here.  ;D But any help otherwise would be fantastic!

Offline Pr0ph3t

  • Members
  • *
Re:Newbie in need of answers!
« Reply #1 on: 24 Mar 2005, 05:07:28 »
when they unboard, unassignvehicle everyone and then assignascargo everyone

Offline sharkyjoe

  • Members
  • *
  • Have you taken a BMP out at 500 meters??
Re:Newbie in need of answers!
« Reply #2 on: 24 Mar 2005, 05:22:14 »
You seemed well on the way Maybe try and check out Snypir pack here in the Editor Depot. Very dynamic. Just a thought since you have a grasp on Scripting. Call in pick -up by choppers among other things.
SP/MP Support Pack snYpir 1.33
Remember the 7 Ps??--- Proper Previous Planning Prevents Pathetically Poor Performance

Offline 999chris

  • Members
  • *
  • I'm a llama!
Re:Newbie in need of answers!
« Reply #3 on: 24 Mar 2005, 15:02:41 »
when they unboard, unassignvehicle everyone and then assignascargo everyone

Ive tried this... Im not really sure how I should write the script should look though is it "_x unassignheli1 grp1"? or "_x unassignheli1" foreachunits grp1? As I said this morning I was tired and didnt have the energy or effort to try anything...

This version Im borrowing is 1.00 is it becasue its such a crappy old version?

Offline Flauta

  • Members
  • *
  • There is no knownledge, that is no power
    • Chek mi FLog
Re:Newbie in need of answers!
« Reply #4 on: 24 Mar 2005, 19:27:45 »
mhhh i thing you'r complicating too much the things...

mi way (newbie's  hard way) is to set an waypoint far away, wher the chopper must whait until the squad seise teh town, and in the waypoint's "on activation" put  this :
 
Code: [Select]
heli setvelocity [0,0,0]this will full stop the chooper, then put a wayopint near the town and put a condition (in the waypoit parameter) : something like "whatever".
and then use a tigger when the chopper must go to pick the squad.. and add tthis line on the "on acrivation" field : whatever = true.

then put an waypoint for the group near the escrtaction zone, and add whatever to the "condition" field... and put an "get in" near it.
Then put a chopper's waypoint whit "load" close the "get in" of the squad, then sinchronize them...

i think this should work.... maybe mi english isnt clear enoguh to understand wolle the spaggeti.... but i think its clear  :P


cheers ;D

 

Offline OFPfreak

  • Members
  • *
  • Who is da operation flashpoint freak now, freak?!
    • OFP NFS mod
Re:Newbie in need of answers!
« Reply #5 on: 25 Mar 2005, 03:21:28 »
newbie in need of answers? I don't even know some of the code you sayed!
ofp nfs REBORN! All new nitro, neon, customized cars, off-road, on-road, rally, bikes, racer models and more!
ofp nfs's homepage

Offline 999chris

  • Members
  • *
  • I'm a llama!
Re:Newbie in need of answers!
« Reply #6 on: 25 Mar 2005, 22:20:52 »
Flauta, that works great thankyou very much!

Ok now people I want to rack your brains again...

1. How do you get a group "grp1" to get into the cargo of say a 5t Truck, get the truck to drive somewhere unload the cargo "grp1" and then get "grp1" to board in the cargo of a helicopter and then fly elsewhere?

2. In my current mission im using "grp1=leader this" in the init field of the leader for the 1st group... the mission goes ok until the Leader (number 1) dies and then number two or whoever takes over. But the soldier that takes over dosent continue to follow the waypoints and does his own thing, which caues the whole Mission to collapse...

Mission attached:


pazuzu

  • Guest
Re:Newbie in need of answers!
« Reply #7 on: 25 Mar 2005, 22:29:04 »
I think "grp1=leader this" should be "grp1=group this" & make sure you rank each soldier in the right order.

Offline 999chris

  • Members
  • *
  • I'm a llama!
Re:Newbie in need of answers!
« Reply #8 on: 25 Mar 2005, 23:43:06 »
I think "grp1=leader this" should be "grp1=group this" & make sure you rank each soldier in the right order.

Hmm, I read somewhere that if you type "group this" once the leader dies the team will focus on a dead body or seomthing... so I tried leader, seems to work in the same way.

Offline Blanco

  • Former Staff
  • ****
Re:Newbie in need of answers!
« Reply #9 on: 26 Mar 2005, 00:22:07 »
pazuzu is right, grp1 = leader this makes no sense.

Your officer is named no1 , in his initialisation field I see the line grp1 = leader this which means that grp1 is the leader of the group of no1, so no1 and grp1 is the same person.

Yes, you can use leader with a group or unit.

When you use grp1 = group this , grp1 will be known as the group of of the unit no1 , when you want to refer to the leader of grp1 even when no1 dies use :

leader grp1

So the command leader become dynamic when you use it with a group

I hope this makes sense :)



 
« Last Edit: 26 Mar 2005, 01:00:36 by Blanco »
Search or search or search before you ask.

Offline 999chris

  • Members
  • *
  • I'm a llama!
Re:Newbie in need of answers!
« Reply #10 on: 26 Mar 2005, 20:12:35 »
Had to read it a couple of times to understand what you meant, but Ive got it now... Ok ok... so say I name the Medic in the group "leader = grp1" so when no1 dies the Medic will lead... what if he dies?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Newbie in need of answers!
« Reply #11 on: 26 Mar 2005, 20:32:27 »
leader = grp1 doesn't make any sense to me either.

The leader of a group is the first unit placed on the map, unless you change this in the groups tab.

When the leader dies, #2 becomes leader.
If #2 dies or is already dead, #3 becomes leader.......etc etc.

leader grp1 ...... this refers to the leader of the group, whoever it happens to be at the time.

It might be #1, the guy who started out as leader or it might be #2 if #1 was killed.......etc etc.



Planck
I know a little about a lot, and a lot about a little.

Offline Flauta

  • Members
  • *
  • There is no knownledge, that is no power
    • Chek mi FLog
Re:Newbie in need of answers!
« Reply #12 on: 26 Mar 2005, 23:52:06 »
well about the 5th truck thing, use the same method whit the helo, and on the truk's waypoints, use the "Unload cargo" in where the grup must be unloaded  :o, then in the "on activation" field put this: something = true.. and then u dont need the trigger, caouse that is de condition, when the sqad reach the waypoint...


clear enogh?  tellme anything u dont understand...

cheers!! 8)

P.D: that thing I told you worked? hoho I will start using it! I've  never tesed it... ;D ;D ;D