The "Placement Radius"-function in 3D-Eden Editor does not work with more than one placed group of soldiers
Description
Description
Details
Details
- Severity
- Major
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- General
Steps To Reproduce
- Start Arma 3
- Go to Editor
- Place a group of soldiers
- Select "Group-Icon" and go to "Attributes"
- Set "Placement Radius to 500
(It works for one group - The group is placed in the given radius)
- Copy the group (or repeat steps 1.-5.) and paste it
- Optional: Copy'n a couple more
- Test Mission: Only one (the last-edited group will be placed in the set radius, all the rest will spawn exactly at position of actual placement)
Event Timeline
Comment Actions
I was going to report the same thing. Arma version 2.0.146.773
In the meantime you may copy this into the init field of the squad:
minimumDistance = 0; maximumDistance = 500; distanceFromOtherObjects = 0; maxGradient = 0.6; waterMode = 0; shoreMode = 0; groupLeader = leader this; randomPosition = [groupLeader, minimumDistance, maximumDistance, distanceFromOtherObjects, waterMode, maxGradient, shoreMode] call BIS_fnc_findSafePos; { if (_x != groupLeader) then { _relDis = _x distance groupLeader; _relDir = [groupLeader, _x] call BIS_fnc_relativeDirTo; _x setPos ([randomPosition, _relDis, _relDir] call BIS_fnc_relPos); }; } forEach units this; groupLeader setPos randomPosition;
You may modify the variables on the top. The documentation of what they do is here: https://community.bistudio.com/wiki/BIS_fnc_findSafePos
Comment Actions
Typo in code caused it to move only the last placed group.
But, the last placed groups init would run last, and their init would move it back to original position.
Fix for https://feedback.bistudio.com/T169079 turned this wrong code to turn into a crash instead