Force placing ladders?
Discussion in 'Rust Development' started by Rusty, Mar 12, 2016.
-
I don't think you can place it in building blocked, you would have to go another way about it. I personally would just raycast where the player is looking and spawn the ladder there
-
I was looking for a more elegant solution. but thanks.
-
In what way?
-
You still going to have the red ladder because its building blocked so no way of player actually knowing if its placeable or not since it will always show red.
[DOUBLEPOST=1457978227][/DOUBLEPOST]I was looking at this snippet but its doesnt seem i can make it work.
Code:private void OnServerInitialized() { PrefabAttribute.server.GetAll<Construction>().Where(pref => pref.fullName.StartsWith(LadderPrefabs)) .ToList().ForEach(ladder => ladder.canBypassBuildingPermission = DisableOnlyOnConstructions); }
