(bd2976a16) Add some automatic orders.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:15:52 +03:00
parent 82d74f7481
commit bbce41fab0
8 changed files with 352 additions and 68 deletions
@@ -653,6 +653,19 @@ namespace Barotrauma.Items.Components
return true;
}
public override void OnItemLoaded()
{
sonar = item.GetComponent<Sonar>();
}
public override bool Select(Character character)
{
if (!CanBeSelected) return false;
user = character;
return true;
}
public override void Update(float deltaTime, Camera cam)
{
networkUpdateTimer -= deltaTime;