Home   Help Search Login Register  

Author Topic: It easily gets complicated!  (Read 705 times)

0 Members and 2 Guests are viewing this topic.

Offline Captain Crunch

  • Members
  • *
It easily gets complicated!
« on: 24 Apr 2003, 01:05:00 »
OK!

  It's getting complicated.

But I never learned to give up. Well at least not so easily!

Everything is fine if I set the five BDRM on "Careless" mode (every single one individually from the "Init" field or in the waypoint).

But if I attach (from the help of a script) a MG on each of the BRDM, not forgeting the fact that the MGs have to be on the "Combat" mode, the BRDM will automatiquely switch to "Combat" mode.

I tried several ways like:

-Regrouping the MGs together and giving them a synchronized "Move" waypoint at the same location as the BRDMs's "Move" waypoint but without success.

I had the idea to put some extra codes in the script I'm using to board the MGs in the BRDMs to order the BRDMs to switch and reswitch to "Careless" mode with the help of a loop. Now this sounds like a good idea until the comes the fact that I have no idea how to do a "check" on the behaviour of the BRDMs.

I thought maybe:

#Check

? (_Carrier "Combat" or "Safe" or "Stealth" or "Aware") : GoTo "Loop"

#Loop

_Carrier SetBehaviour "Careless"

Goto "Check"


But it doesn't work either

Any good ideas?
Back to the forest!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:It easily gets complicated!
« Reply #1 on: 24 Apr 2003, 01:14:27 »
1st thin

make sure dat da MGs r not grouped 2 nothin (not BDRMs nd not oder MGs) nd dont give em WPs

2nd thin

Code: [Select]
#Check

? (_Carrier "Combat" or "Safe" or "Stealth" or "Aware") : GoTo "Loop"

#Loop

_Carrier SetBehaviour "Careless"

Goto "Check"

shud b

Code: [Select]
#Check

@ "behaviour _Carrier == _X" count ["stealth","combat","aware","safe"] > 0

_Carrier SetBehaviour "Careless"

Goto "Check"

3rd thin

go to ofp.info nd fin uself da BTR70 or som oder vehicle dat have a MG on it :P

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

kingneb

  • Guest
Re:It easily gets complicated!
« Reply #2 on: 24 Apr 2003, 01:43:26 »
 ::)operation flashpoint editing requires patients, and a derivitive of the old hackers culture which orginated at MIT.  It is a form of computer programming too, a great beginning for full-fleged 3D game programming, a career in great demand these days.  

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:It easily gets complicated!
« Reply #3 on: 24 Apr 2003, 01:55:25 »
@ kingneb

wat u said is not exactly on topic i think ::)

i dont realy think dat deres som1 who dont knows dat its kind of comp-progin (mebe it shud b 1 word ? comprogin  ;D)

btw can  gemme a job ;)

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

Offline Captain Crunch

  • Members
  • *
Re:It easily gets complicated!
« Reply #4 on: 24 Apr 2003, 02:04:32 »
Hmm! I thought it would work but it doesn't! :(

--The thing here is I need the BRDM convoy to stay on the road and drive towards their waypoint at a fast speed without stoping or slowing down all the time (like they would in the "Safe" mode) but allowing the MGs to fire at me (in a flying chopper) unmercyfully!--

And the BTR70 requieres the Resistance update which I unfortunately still don't have. :-\

Please someone, tell me theres somethin I can do!
Back to the forest!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:It easily gets complicated!
« Reply #5 on: 24 Apr 2003, 03:38:43 »
did u make sure da MGs r not grouped 2 nythin ?

shud work ;D

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

Offline Captain Crunch

  • Members
  • *
Re:It easily gets complicated!
« Reply #6 on: 24 Apr 2003, 15:39:39 »
Yeah the MGs are surely not grouped, they don't have waypoints either. I spent four and a half hour last night...Hmm, I mean this morning, only on this matter and still don't own success!  >:(

I also tried puting empty MGs on the map and then add the gunners to 'em with a GetIn command...Ii doesn't work, the darn vehicles keep movin slowly. Would it be easier to set this all up with a vehicle that already has a machine gun mounted on it (and only a machine gun, not a cannon). If yes then is there any addons (from the east side if possible, if not then it don't matter) like the BTR70 compatible with version 1.46???

Or there may be something I do wrong since LCD tells me this should work. Here  is how I've done it:

In the "Init" field of the BRDMs I typed:

this Exec "BehaviourCheck.sqs

And the "BehaviourCheck.sqs" goes like LCD proposed me:

#Check

@ "Behaviour _Carrier == _X" Count["Stealth", "Combat", "Aware", "Careless"] > 0

_Carrier SetBehaviour "Safe"

Goto "Check"

Is there anything wrong?
Back to the forest!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:It easily gets complicated!
« Reply #7 on: 24 Apr 2003, 15:59:22 »
As a test, take the gunners out and the choppers out.  Get the convoy working the way you want like that.

Then add back the gunners (maybe moveInGunner will help) and make that work.

Then put back the choppers.
Plenty of reviewed ArmA missions for you to play

Offline Captain Crunch

  • Members
  • *
Re:It easily gets complicated!
« Reply #8 on: 24 Apr 2003, 16:53:39 »
I've already tried.
The convoy alone will work nicely but as soon as I mount the MGs on the
BRDMs, then the BRDMs switch off from the "Safe" mode which makes them go around slowly, not really following their waypoint. Could it be the script that I use to mount the MGs on the BRDMs that ruins everything? Here's what this script looks like:  

"MG.sqs"


_Carrier = _This Select 0
_Cargo = _This Select 1
_Height = _This Select 2


#Carrier

_X = (GetPos _Carrier) Select 0
_Y = (GetPos _Carrier) Select 1
_Z = ((GetPos _Carrier) Select 2) + _Height

_Cargo SetPos [_X, _Y, _Z + 0.9]
_Cargo SetDir (GetDir _Carrier)

GoTo "Carrier"


Exit


And I type in the "Init" field of the BRDMs:


[VehicleName, MGName, _Height] Exec "MG.sqs"



Or wouldn't it be better to use a vehicle that already has a mounted machine gun on it???
I'd be good if this vehicle would be on wheels and only have a machine gun. This sounds pretty much like the Jeep but I would need more of a armored type vehicle. I've checked around for addons but haven't found any! Would someone know of such a vehicle?


There's gotta be something to do about this!! >:(
Back to the forest!