DarkflameServer/dScripts/ai/AG/AgStromlingProperty.cpp

17 lines
346 B
C++
Raw Normal View History

#include "AgStromlingProperty.h"
#include "MovementAIComponent.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(COMPONENT_TYPE_MOVEMENT_AI, movementAIComponent);
}