Example #1
0
 object CanUseLockedEntity(BasePlayer player, BaseLock baseLock)
 {
     if (player.userID == Developer)
     {
         player.IPlayer.Reply(baseLock.ShortPrefabName);              //works
         player.IPlayer.Reply("Has Parent: " + baseLock.HasParent()); //works
         BaseEntity parent = baseLock.GetParentEntity();
         player.IPlayer.Reply("Parent: " + parent.ShortPrefabName);   //works
     }
     return(null);
 }