Home   Help Search Login Register  

Author Topic: Object & Rnd quest for sniper and patrol script  (Read 4100 times)

0 Members and 1 Guest are viewing this topic.

Offline RT-SuperTron

  • Members
  • *
  • Prey...you will be
Re:Object & Rnd quest for sniper and patrol script
« Reply #15 on: 05 Jun 2003, 22:11:45 »
It works fine thanx.  ;)

#Pick and Show
Xnum = 0
Xnum =(Random 69900)
Xnum = Xnum - (Xnum Mod 1)

Hint Format ["Object choosen is:\n%1",Xnum]

I can even assign the hole squad to move allong with him. BUT!! I have tried million combinations or so, and I cant for the living ....hmmm figure out how to make a check on the leader of the group and the distance to the object.. hence making it loop back and pick a new object.
I now the following line is very incorrect but if you have any idea how to solve it (I now it can be done) then please let me know..

?(Leader Group _This Distance Object Xnum > 10) : Goto "Pick and Show"

When this little riddle get solved, the there is more to come.. ;)

[RT]SuperTron
+- PAIN IS YOUR FRIEND, IT WILL REMIND YOU THAT YOU ARE ALIVE -+

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Object & Rnd quest for sniper and patrol script
« Reply #16 on: 05 Jun 2003, 23:44:48 »
(leader (group _this)) distance (object Xnum) > 10 : Goto "PickandShow"

shud b workin

xeot mebe () prob nd dat u can put space as name of place in script (nd refere 2 it in da boto command)

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

Offline RT-SuperTron

  • Members
  • *
  • Prey...you will be
Re:Object & Rnd quest for sniper and patrol script
« Reply #17 on: 06 Jun 2003, 04:16:54 »
Hmmm.. still a silent battle between me, and whatever OFP thinks im alowed to type.

Next Question..I have noticed that when you let different leaders or single units start the script with - [This] Exec "TestId.sqs" - in there init field, they will all select the same Number...?? Now how do I make it so they cant do that.
It has got to be something like : Xnum == Xnum : Goto "PickNewOne"

A million thanks for your help so far...

[RT]SuperTron
+- PAIN IS YOUR FRIEND, IT WILL REMIND YOU THAT YOU ARE ALIVE -+

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Object & Rnd quest for sniper and patrol script
« Reply #18 on: 06 Jun 2003, 04:22:10 »
cuz Xnum in ur script is global variable - so it changes 4 every1 - if u want it 2 b privte vari - put _Xnum instead ;D

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

Offline RT-SuperTron

  • Members
  • *
  • Prey...you will be
Re:Object & Rnd quest for sniper and patrol script
« Reply #19 on: 07 Jun 2003, 00:47:56 »
 ::) :beat: (knocking my self silly)...Of course, maybe i should try doing this during the day instead of the night..mannn...

Thankx again..

[RT]SuperTron
+- PAIN IS YOUR FRIEND, IT WILL REMIND YOU THAT YOU ARE ALIVE -+