Home   Help Search Login Register  

Author Topic: Random place where to be  (Read 2327 times)

0 Members and 1 Guest are viewing this topic.

Hartza

  • Guest
Random place where to be
« on: 23 Aug 2002, 11:08:08 »
Okay, this is what I am looking for.

I have a rescue mission where my team have to rescue a pilot  who has been shut down and captured by east.
Pilot is held and guarded on one building in the city.

To make it more interesting I want that this pilots helding place changes randomly between 3-4 places. So, when mission stars I don't know where he excactly is and I have to find him out.

How to set pilots position randomly ?

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Random place where to be
« Reply #1 on: 23 Aug 2002, 11:23:15 »
The easy way is to use "Placement radius" option.

Look at the bottom of the unit window when you create the guy  :-*

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Random place where to be
« Reply #2 on: 23 Aug 2002, 11:27:07 »
@ tomb - he want it 2 b random in 3-4 places he already specified

use da next script (activate it in a init of som1  ;))

_ran = random 4
~1
? _ran >= 0 nd _ran < 1 : unitname setpos getpos gspot
? _ran >= 1 nd _ran < 2 : unitname setpos getpos gspot1
? _ran >= 2 nd _ran < 3 : unitname setpos getpos gspot2
? _ran >= 3 nd _ran =< 4 : unitname setpos getpos gspot3

exit


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

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Random place where to be
« Reply #3 on: 23 Aug 2002, 11:29:17 »
Ah yes, so he does, so he does...  ::) my coffee is too thin, this danish morning  ::) :P

Hartza

  • Guest
Re:Random place where to be
« Reply #4 on: 23 Aug 2002, 11:30:34 »
heh heh this supposet to be answer to Tombs post ...

hhhmmm...

but I don't want himt to wanderer around, but been held in certain position, actually certain room, with guards  :P

Guards can be on that room anyway with or with out pilot, so I dont have to move them, and they can be on Guard mode anyway. But my pilot should appear to one of these 3-4 rooms.
« Last Edit: 23 Aug 2002, 11:31:52 by Hartza »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Random place where to be
« Reply #5 on: 23 Aug 2002, 11:31:08 »
coffe ?   :o ::)  :-X didnt u drink beer ? here is da reason y u r so fuuzy go nd drink 1 now :cheers:  ;D  ;)

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

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Random place where to be
« Reply #6 on: 23 Aug 2002, 11:34:14 »
howsabout grouping him to a number of "empty" ( = hidden) markers  ???


If his "special" field is set to "IN FORMATION", he'd have to be close to one of those  :D

This should add some randomness, I assume

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Random place where to be
« Reply #7 on: 23 Aug 2002, 11:37:16 »
u can group som1 2 triger ??? but he wil b close 2 da leader nd always in da sam place ? right dats wat hapen wid reg groups  :)

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

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Random place where to be
« Reply #8 on: 23 Aug 2002, 11:40:37 »
g-spots (gamelogics) & markers are good for this kinda stuff, lsd. try it for size, m8s  8)

« Last Edit: 23 Aug 2002, 11:41:26 by Tomb »

Hartza

  • Guest
Re:Random place where to be
« Reply #9 on: 23 Aug 2002, 11:42:58 »
Your are right LCD, who drinks coffee  :-X

Sun is shining and with in an hour I and my fellow workers are about to start nice lake cruising with lots of beer  :cheers:

LCD, it seems to be samekind of idea than those "random waypoin" things ...

Thanks LCD and others !

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Random place where to be
« Reply #10 on: 23 Aug 2002, 12:10:14 »
Sun is shining and with in an hour I and my fellow workers are about to start nice lake cruising with lots of beer  :cheers:

LCD, it seems to be samekind of idea than those "random waypoin" things ...


lots of beer - good  ;)  ;D

donno bout dat random wps but u can it wid da random thing  ;)

but check it nd c if dere is a eror  ;D ;)

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

Bremmer

  • Guest
Re:Random place where to be
« Reply #11 on: 23 Aug 2002, 12:59:41 »
The simplest way to do this is place empty markers in the locations you want the unit to appear, and then group the markers to the unit. Make sure the unit starts in formation. It will now appear at any of the marker locations, or at the location where you actually placed the unit.

This is the method BIS used to generate semi-random positions in their 'Steal the car'  mission.

Cheers

Hartza

  • Guest
Re:Random place where to be
« Reply #12 on: 24 Aug 2002, 14:37:25 »
Thanks Bremmer, that seems to do the job.

Guy is starting different positions when starting game.

 :thumbsup: