Home   Help Search Login Register  

Author Topic: Put a vehicle at 1 of 10 random positions  (Read 550 times)

0 Members and 2 Guests are viewing this topic.

Olle Stolpe

  • Guest
Put a vehicle at 1 of 10 random positions
« on: 23 Feb 2005, 17:59:38 »
Anyone have a good idea how to put a vehicle at 1 of 10 or more different locations.
I want to make a mission dynamic so that a Scud-car is positioned differently inside a town
every time you play the mission.


Thanks.

Dubieman

  • Guest
Re:Put a vehicle at 1 of 10 random positions
« Reply #1 on: 23 Feb 2005, 18:12:40 »
Put a marker at each of the positions and group the Scud to each. Or is it synch? I think its group it and it'll appear randomly at the spot of one of the markers. An old trick from the "Steal the Car" BIS mission. ;)

Olle Stolpe

  • Guest
Re:Put a vehicle at 1 of 10 random positions
« Reply #2 on: 23 Feb 2005, 18:20:18 »
I'll try it...
thx

Olle Stolpe

  • Guest
Re:Put a vehicle at 1 of 10 random positions
« Reply #3 on: 23 Feb 2005, 18:44:22 »
Works fine.. Put I would like to make it more precise.. Like change the Azimut on some positions.

Is there a way of putting like 5 scuds on the map and have the computer to pick out one to use
for the mission?

Offline ACF

  • Members
  • *
  • Llama?? Ain't that French for tanks?
Re:Put a vehicle at 1 of 10 random positions
« Reply #4 on: 23 Feb 2005, 19:28:42 »
Have a look here for other ideas (I won't chide you for not searching because I just did and I couldn't find the bloody thread!)

http://www.ofpec.com/yabbse/index.php?board=22;action=display;threadid=21689

It'll be a good little scripting exercise.

@GRK - never knew that trick though.


Offline Wadmann

  • OFPEC Patron
  • ****
  • I'm the next evolutionary step after a llama!
Re:Put a vehicle at 1 of 10 random positions
« Reply #5 on: 23 Feb 2005, 19:46:02 »
I am just thinking out loud here, but if you changed the azimuth of the marker could that change the direction that the Scud is facing?

Another thought would be to put a trigger at each place where the Scud could be located and if the Scud is present then set the direction of the Scud to the desired azimuth for that particular position using the "setdir" command.


                                                    Wadmann
Check out my Camouflage Collection! New items added 31 July 2005.

Dubieman

  • Guest
Re:Put a vehicle at 1 of 10 random positions
« Reply #6 on: 24 Feb 2005, 00:18:28 »
I think Wadmann is right, change direction of marker to change scud direction. Sounds like something OFP would do. ;D

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Put a vehicle at 1 of 10 random positions
« Reply #7 on: 24 Feb 2005, 00:40:38 »
Changing the direction of the marker doesn't work for me.

Wadmann's second good idea, the trigger and setDir trick, would work fine.
Plenty of reviewed ArmA missions for you to play

Olle Stolpe

  • Guest
Re:Put a vehicle at 1 of 10 random positions
« Reply #8 on: 25 Feb 2005, 01:18:55 »
it did