DarkflameServer/dScripts/ai/AG/AgStromlingProperty.cpp

18 lines
389 B
C++
Raw Normal View History

#include "AgStromlingProperty.h"
#include "MovementAIComponent.h"
#include "eReplicaComponentType.h"
2022-07-28 13:39:57 +00:00
void AgStromlingProperty::OnStartup(Entity* self) {
auto movementInfo = MovementAIInfo{
"Wander",
71,
3,
100,
1,
4
};
2022-07-28 13:39:57 +00:00
auto* movementAIComponent = new MovementAIComponent(self, movementInfo);
self->AddComponent(eReplicaComponentType::MOVEMENT_AI, movementAIComponent);
}