GhostRoleMobSpawner can make entities sentient when spawning them.
This commit is contained in:
@@ -43,6 +43,11 @@ namespace Content.Server.Commands
|
||||
return;
|
||||
}
|
||||
|
||||
MakeSentient(entity);
|
||||
}
|
||||
|
||||
public static void MakeSentient(IEntity entity)
|
||||
{
|
||||
if(entity.HasComponent<AiControllerComponent>())
|
||||
entity.RemoveComponent<AiControllerComponent>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user