FloorColliderUnitIdSpecs: Difference between revisions

From The Colonists
Jump to navigation Jump to search
initial creation
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
placeholder - explanation of units using collider in buildings for height adjustment<br>
This entry in [[ModRender|'''render.json''']] defines which units use colliders on Floor layer, by setting "isOn" to "true"<br>
See [[BotUnitModIDs]] for Unit Ids <br>
See [[BotUnitModIDs]] for Unit Ids <br>
Example entry in [[ModRender|render.json]] <br>
Example entry in [[ModRender|render.json]] <br>
   "floorColliderUnitIdHash": [
<pre>
     1,
   "floorColliderUnitIdSpecs": [
     10,
     {
     7 ]
      "unitId": 10,
      "isOn": true
     },
     {
      "unitId": 7,
      "isOn": true
    }
  ]
</pre>

Latest revision as of 18:11, 22 December 2022

This entry in render.json defines which units use colliders on Floor layer, by setting "isOn" to "true"
See BotUnitModIDs for Unit Ids
Example entry in render.json

  "floorColliderUnitIdSpecs": [
    {
      "unitId": 10,
      "isOn": true
    },
    {
      "unitId": 7,
      "isOn": true
    }
  ]