mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-15 04:28:27 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
16
dScripts/AgStromlingProperty.cpp
Normal file
16
dScripts/AgStromlingProperty.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "AgStromlingProperty.h"
|
||||
#include "MovementAIComponent.h"
|
||||
|
||||
void AgStromlingProperty::OnStartup(Entity *self) {
|
||||
auto movementInfo = MovementAIInfo {
|
||||
"Wander",
|
||||
71,
|
||||
3,
|
||||
100,
|
||||
1,
|
||||
4
|
||||
};
|
||||
|
||||
auto* movementAIComponent = new MovementAIComponent(self, movementInfo);
|
||||
self->AddComponent(COMPONENT_TYPE_MOVEMENT_AI, movementAIComponent);
|
||||
}
|
||||
Reference in New Issue
Block a user