2021-12-05 17:54:36 +00:00
|
|
|
#include "AgStromlingProperty.h"
|
|
|
|
#include "MovementAIComponent.h"
|
2023-03-04 07:16:37 +00:00
|
|
|
#include "eReplicaComponentType.h"
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
void AgStromlingProperty::OnStartup(Entity* self) {
|
|
|
|
auto movementInfo = MovementAIInfo{
|
|
|
|
"Wander",
|
|
|
|
71,
|
|
|
|
3,
|
|
|
|
100,
|
|
|
|
1,
|
|
|
|
4
|
|
|
|
};
|
2021-12-05 17:54:36 +00:00
|
|
|
|
2022-07-28 13:39:57 +00:00
|
|
|
auto* movementAIComponent = new MovementAIComponent(self, movementInfo);
|
2023-03-04 07:16:37 +00:00
|
|
|
self->AddComponent(eReplicaComponentType::MOVEMENT_AI, movementAIComponent);
|
2021-12-05 17:54:36 +00:00
|
|
|
}
|