Jump to content

Help with mist.groupToRandomZone()


Go to solution Solved by AKA_Clutter,

Recommended Posts

Posted

All,

 

I'm trying to learn how to use this MIST function.  Seems simple, but I've screwed something up.  I have a group defined as Hiden_Squad_1 and have 4 zones defined as Search_Zone_1, Search_Zone_2, Search_Zone_3, 'Search_Zone_4.  And it doesn't work.

I load MIST v 4.5.126 when time is more than 1 second, and then run this as a do script after time is more than 20 seconds.

I have tried having the group active at the star and on the map or set up as late activation.

 

What am I missing?  Do I need to have MIST generate a table of units and/or zones at the start?

TIA


 

do
  mist.groupToRandomZone('Hiden_Squad_1', {'Search_Zone_1', 'Search_Zone_2','Search_Zone_3', 'Search_Zone_4'}, 'cone', nil, nil, true)
end

 

----------------

AKA_Clutter

 

Win 10 Pro, Intel i7 12700k @4.6 GHz, EVGA RTX 3080  FTW, Ultra 64 GB G.Skill DDR4 3600 RAM, Acer 27" flat screen, HP Reverb G2, TM Warthog HOTAS with Virpil warBRD base, MFG Rudder Pedals, Virpil TCS Rotor Base with AH-64Dcollective, TrackIR 5 Pro w/Vector Expansion, PointCTRL.

  • Solution
Posted

OK, 

 

Stupid me.  I was wanting to do one thing and thought I found the magic bullet.  Nope.  Went back and read the description of this function and it is doing EXACTLY what it said it would do.

To moves an existing group to a random location in one of the specified zones, randomly

What I was trying to do was to SPAWN a group in one of several zones randomly.  Back to the drawing board.

----------------

AKA_Clutter

 

Win 10 Pro, Intel i7 12700k @4.6 GHz, EVGA RTX 3080  FTW, Ultra 64 GB G.Skill DDR4 3600 RAM, Acer 27" flat screen, HP Reverb G2, TM Warthog HOTAS with Virpil warBRD base, MFG Rudder Pedals, Virpil TCS Rotor Base with AH-64Dcollective, TrackIR 5 Pro w/Vector Expansion, PointCTRL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...