Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Community Reputation

2 Neutral

About CollectiveS

  • Rank
  1. Hi Elusive, I know this is something of a late reply but as I've been trying to locate the answer to this very same question today I thought I'd share my findings with you for future reference. The manpower calculation is as follows: _threat = ((((_threat select 0) + (_threat select 1) + (_threat select 2)) - 0.5) max 0.5) ^ 2; _value = _threat * sqrt(_cost/10000 + _armor) * 0.25; _value = _value max 0.5; _value = [_value,0.1] call bis_fnc_roundNum; using the _threat, _cost and _armor values from the units CfgVehicles entry. I didn't bother actually checking but I assume the roundNum function rounds the value to the nearest 0.1. Having tested this, the cost of 6 for an AA/AT soldier appears to be incorrect (it's more like 2), and it's important to note that the module will not spawn any unit that will send it over it's manpower cap. Hope this helps someone.
  2. Hey all, Okay so what I'm trying to do is create a script that either uses or emulates dynamic simulation but only triggers once for any given unit. Essentially I want them to remain unsimulated until a condition is met (namely any player getting within x meters) and then to become simulated and remain that way. For context this is because of AI behaivour (especially from some mods) allowing them to call for backup, as the reinforcements hoof it towards the fight the players retreat or die. The AI are once again desimulated, sometimes in very visible lcoations and could now be visible from a long way away frozen mid run. I was thinking of trying to do it with a while script in init.sqf like while {isServer} do { _nearby = player nearEntities ["east", 300]; {_x enableSimulation true} forEach units _nearby }; or in each units init with something like while (this nearEntities ["player", 300] != []) do { this enableSimulation true }; I'm not sure if that script is even remotely correct, but the idea is that all of the units on the mission begin unsimulated with dynamic simulation off and this script handles all simulation triggers. Has anyone made a run-once simulation script before? Or can help me build one here? Any help would be appreciated!