GhostRoleMobSpawner can make entities sentient when spawning them.

This commit is contained in:
Vera Aguilera Puerto
2021-02-14 13:34:02 +01:00
parent 8185a4b4d3
commit 10bfc087e7
2 changed files with 15 additions and 1 deletions

View File

@@ -43,6 +43,11 @@ namespace Content.Server.Commands
return;
}
MakeSentient(entity);
}
public static void MakeSentient(IEntity entity)
{
if(entity.HasComponent<AiControllerComponent>())
entity.RemoveComponent<AiControllerComponent>();