mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 20:52:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			385 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			385 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "AgStromlingProperty.h"
 | |
| #include "MovementAIComponent.h"
 | |
| #include "eReplicaComponentType.h"
 | |
| 
 | |
| void AgStromlingProperty::OnStartup(Entity* self) {
 | |
| 	auto movementInfo = MovementAIInfo{
 | |
| 		"Wander",
 | |
| 		71,
 | |
| 		3,
 | |
| 		100,
 | |
| 		1,
 | |
| 		4
 | |
| 	};
 | |
| 
 | |
| 	auto* movementAiComponent = self->AddComponent<MovementAIComponent>(0U);
 | |
| 	if (movementAiComponent) movementAiComponent->SetMoveInfo(movementInfo);
 | |
| }
 | 
