Cities: Skylines
28 คะแนน
Terrace Front Wall Render - Adapts to Slopes
   
รางวัล
ชื่นชอบ
ชื่นชอบแล้ว
เลิกชื่นชอบ
Assets: Prop
ขนาดไฟล์
โพสต์
1.345 MB
3 พ.ค. 2016 @ 1: 24am
1 หมายเหตุการเปลี่ยนแปลง ( ดู )

สมัครสมาชิกเพื่อดาวน์โหลด
Terrace Front Wall Render - Adapts to Slopes

อยู่ใน 2 ชุดสะสม โดย Sparky66
Sparky's Slope Adapting Walls & Fences
32 รายการ
Sparky's Victorian British Buildings
63 รายการ
คำอธิบาย
Part of my collection of slope adapting walls and fence props for asset creators. Subscribe to the collection to get all components.

These walls and fences will adapt to slopes in the same way the default hedges do, meaning you don't end up with ugly floating walls on slopes. They have been designed so they can be easily combined and placed right up to the edge of the plot. Find them in the park bench section of the asset editor. Used by my British Victorian building set.
4 ความเห็น
Elias 3 พ.ค. 2016 @ 10: 33am 
thanx for the response... this might be real helpful to me.
Sparky66  [ผู้สร้าง] 3 พ.ค. 2016 @ 2: 42am 
// Possible Values:
// "Custom/Props/Decal/Blend"
// "Custom/Props/Decal/Solid"
// "Custom/Props/Prop/Fence"
// "Custom/Props/Prop/Default"
var shader = Shader.Find("Custom/Props/Prop/Fence");

// set this to true if the prop should conform to the terrain, otherwise false
var requireHeightMap = true;
// --- end of settings ---


var asset = ToolsModifierControl.toolController.m_editPrefabInfo as PropInfo;
if(asset == null) { Debug.Log("Error: Not a prop!"); return; }

asset.m_requireHeightMap = requireHeightMap;
if(asset.m_material != null) asset.m_material.shader = shader;
if(asset.m_lodMaterial != null) asset.m_lodMaterial.shader = shader;



The prop should now adapt to the terrain, you can save it as normal.

Thanks to boformer for help with the script. It can also be used to create decals but I haven't experimented with that yet.
Sparky66  [ผู้สร้าง] 3 พ.ค. 2016 @ 2: 42am 
To make a prop adapt to terrain:

Enable mod tools
Load the prop into the asset editor as usual, set colour variation etc. as normal.
Before you save press F7, which should bring up mod tools.
Paste the following script into the dialogue box and press enter:
Elias 3 พ.ค. 2016 @ 2: 07am 
is it possible to convert existing walls/prop to slope adapting walls/props? did you use a setting in "mod tools"? or is it more complicated than i hope it will be?