Home   Help Search Login Register  

Author Topic: bridges ...  (Read 1256 times)

0 Members and 1 Guest are viewing this topic.

Offline supershooter

  • Members
  • *
  • 2+2=4
bridges ...
« on: 16 Apr 2005, 21:19:17 »
Hi,

I am making a mission which involves two columns of troops going across the big bridge on nogova. the columns need to be passing one another because they are going in different directions (west and east <===>). I get the men on the bridge and walking towards each other and then when they meet they have their troubles. Everyone stops and starts walking around all over the place, turning circles and trying to jump off the bridge!

Is there a way around this? Can someone explain to me what to do?  Could some one even whack up an example mission of how to do it but with just one man going in each direction (I don't need to have an example but it would be helpful).

I know ofp and bridges arn't friends but I really need this. Any help would be appreciated.

-supershooter

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:bridges ...
« Reply #1 on: 16 Apr 2005, 21:40:31 »
Bridges are very difficult, especially with armour.

Try putting the men in 'safe' or 'careless' mode for crossing the bridge.

EDIT:  Almost forgot try 'column' formation too.


Planck
« Last Edit: 16 Apr 2005, 21:43:34 by Planck »
I know a little about a lot, and a lot about a little.

Tomasz

  • Guest
Re:bridges ...
« Reply #2 on: 16 Apr 2005, 21:47:08 »
Well he already said that they are in columns. Anyway order them also "UP". I had those problems myself :P, and I changed it so they go in trucks in the end. Although if you have the patience that I lack you'll succeed.

Good luck


Tomasz

Offline Morglor9

  • Members
  • *
Re:bridges ...
« Reply #3 on: 17 Apr 2005, 00:16:56 »
i tried to make a mission where u kill an armoured column on a bridge, but i ran into a problem where half the tanks would make it and the others would try to stay on the ground under the bridge and therefore get stuck in the bridge. i just gave up, because there was no way that i could find to fix it.

point being, bridges suck.
Cymbaline

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:bridges ...
« Reply #4 on: 17 Apr 2005, 08:32:28 »
if you really really want this to be done you need to cheat.

the way i got around the problems of getting armour to traverse that particular bridge was to teleport tanks from one side to the other, and then made up the storyline around it ;)

the better way would be to use setvelocity or a setpos loop to capture your groups and move them across in single file by hand.

if the columns are vehicles, use setvelocity. see the comref for the details.

if you've got infantry, setvelocity doesn't work on them, so i would suggest setting up something like this -

assuming the bridge is exactly horizontal across the map, i.e. west/east

Code: [Select]
_step = 0.3

#loop

{_x setpos [(getpos _x select 0) + _step, getpos _x select 1]} foreach units bridge_group

?not (loons_across_bridge):goto "loop"

exit


for going across the other way, use - _step instead of +.

it's a very messy way to achieve what you want, and the loons will look like they're moonwalking, but that's ofp for you ;)


EDIT - doesn't work, just tested it and they float across the water.

this does work however -

Code: [Select]
{_x setdir 270} foreach units bridge1
{_x setdir 90} foreach units bridge2

#loop

{_x switchmove "CivilWalkF"} foreach units bridge1
{_x switchmove "CivilWalkF"} foreach units bridge2

~1.3

?not(loons_across_bridge):goto "loop"

{_x switchmove "stand"} foreach units bridge1
{_x switchmove "stand"} foreach units bridge2

exit

bridge1 are on the left side of the bridge, bridge2 on the right. problem is, after they stop, they continue again.... worth playing with though :)
« Last Edit: 17 Apr 2005, 09:13:46 by bedges »

bdfy1

  • Guest
Re:bridges ...
« Reply #5 on: 17 Apr 2005, 14:04:58 »
If your mission will end on this bridge you can try to simply  disableAI "Move" and then loop StandWalkF animation. The soldier will go stright forward ...
Play with this idea ;)
 

Offline supershooter

  • Members
  • *
  • 2+2=4
Re:bridges ...
« Reply #6 on: 17 Apr 2005, 15:09:49 »
I will thank everyone for their help, I have learnt some more scripting plus have sorted out my problems ... sort of.  ;D

But that is just another OFP prob, can't wait for OFP2.  ;D ::)

-supershooter