Jump to content

Recommended Posts

Posted (edited)

Is is possible to make certain unit groups spawn randomly in a selected area ? Like if I created a trigger zone with radius 10 km for example (or perhaps marked the spawn area by some other method) and then set 10 unit groups to spawn randomly in this area ? You see I love creating my own missions but when I do I always know exactly where the enemy units are so I'd like to introduce some random elements into my missions.

 

edit : oh I think I found my answer in other forum threat - using random condition for group activate trigger. Its still not quite random (you have to place all the "random" units there) but it's better than nothing I guess.

 

edit2 : wouldn't it be possible to randomize the spawn itself using lua script ? For example using red bullseye as a start point and then randomizing unit positions around this object in selected radius. That must be possible if there is some command to set units position (setPosition(UNIT, X, Y)?). If there is such command available then it would be a matter of a simple script to get red bullseye pos +- random number of meters ( x > 0 < radius ) to set each units position at mission start. Is there a documentation of all the available scripting commands somewhere ? Like Arma2 for example has - the scripting documentation is very well done for Arma, well for every BiS product since OFP. Is there stuff like this available for DCS as well ? I tried searching for it but didn't find anything.

Edited by lanmancz

[sIGPIC][/sIGPIC]

 

Gigabyte Aorus Z390 Elite, Intel i9 9900K, Fractal Design Kelvin S36, Zotac GTX 1070 8GB AMP Extreme, 32GB DDR4 HyperX CL15 Predator Series @ 3000 MHz, Kingston SSD 240GB (OS), Samsung 970 EVO 1TB M.2 NVMe (sim), Fractal Design Define R5 Black Window, EVGA SuperNOVA 750 G2, Win 10 Home x64, Thrustmaster Warthog HOTAS, Saitek Pro Flight Rudder Pedals, Thrustmaster MFD Cougar Pack, TrackIR (DelanClip), 3x 27" BenQ EW2740L, Oculus Rift S

 

Posted

Sadly you cant randomly spawn units in a zone. You have to place each possible group. Additionally you can add waypoints for each group and have them randomly hold position along their path.

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

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