damsous 329 Posted May 14, 2017 Hello, its possible to use a simple line for activate the dynamic simulation on the AI spawned by the site module ? Share this post Link to post Share on other sites
Larrow 2822 Posted May 17, 2017 Place this in your site modules init box. h = this spawn { if !( isServer ) exitWith {}; params[ "_site" ]; waitUntil{ !isNil { _site getVariable "processed" } && { _site getVariable "processed" } }; { _x enableDynamicSimulation true; }forEach ( _site getVariable[ "garrison", [] ] ); }; It uses two variables that are available on a site "processed" is set true once the site and its groups have been initialised "garrison" is an array of all the groups spawned by the site So the script passes the module into a spawned thread this, which then waits until the site has fully initialised ( "processed" is true ). It then loops through all the sites groups ( "garrison" ) and enables dynamic simulation for each one. 3 Share this post Link to post Share on other sites
damsous 329 Posted July 31, 2017 Big thanks i will try this :) Share this post Link to post Share on other sites
CoG Joel 0 Posted August 7, 2017 So im trying to setup the Dynamic simulation and i have click all he boxes but still no good... one question are the ai meant to spawn? Share this post Link to post Share on other sites
damsous 329 Posted August 8, 2017 On 07/08/2017 at 7:52 AM, CoG Joel said: So im trying to setup the Dynamic simulation and i have click all he boxes but still no good... one question are the ai meant to spawn? Uncheck the view distance boxe and put 25m for try... Share this post Link to post Share on other sites