So using the OnEntityBuild event how would you place a code lock on a door
Code:void OnEntityBuilt(Planner plan, GameObject go) { if go.ShortPrefabName = "door.hinge.metal" { //Code lock place. } }
Solved Adding a code lock to a door in a script
Discussion in 'Rust Development' started by cookiecool, Feb 5, 2018.