Hi, i created an ability for make oberkommando HQ redeployable, everything work as intented, but when i repack an HQ the spawned truck doesn't spawn exactly where it was deployed and, also he isn't facing the right direction.
I saw the same functionality on the All unit mod, and it doesn't have this issue at all, is there anyone who know how can i solve this problem please ?
			Mobile Oberkommando Headquarters
									14 Apr 2021, 13:22 PM
				
	#1					
								
					
				
		Posts: 18
									14 Apr 2021, 13:33 PM
				
	#2					
								
					
				
		
    		            							
			    		Posts: 817 | Subs: 5
Hi,
I assume you use spawn_squad? That action spawns a squad with a random facing direction.
The spawn_entity action uses the same facing direction as the caster of the ability. Using the rebuild functionality makes it possible to spawn an entity and transform it into a squad.
This is how I made it:
Create a new wreck in ebps. In health_ext set the rebuild_entity and rebuild_squad to the sws truck.
In action_apply add a heal_action that adds the same amount hp that the entity has is health_ext.
In your become mobile ability:
Replace the spawn_squad with the spawn_entity action:
entity_blueprint = new wreck
permanent = true
player_owned = true.
And with a delay: make_dead action.
			
		I assume you use spawn_squad? That action spawns a squad with a random facing direction.
The spawn_entity action uses the same facing direction as the caster of the ability. Using the rebuild functionality makes it possible to spawn an entity and transform it into a squad.
This is how I made it:
Create a new wreck in ebps. In health_ext set the rebuild_entity and rebuild_squad to the sws truck.
In action_apply add a heal_action that adds the same amount hp that the entity has is health_ext.
In your become mobile ability:
Replace the spawn_squad with the spawn_entity action:
entity_blueprint = new wreck
permanent = true
player_owned = true.
And with a delay: make_dead action.
									14 Apr 2021, 17:32 PM
				
	#3					
								
					
				
		Posts: 18
I tried to put it in place but i had probably forgot something, the truck who appear at the end isn't my mobile truck but it's wreak who can't move.

			
		
									14 Apr 2021, 17:47 PM
				
	#4					
								
					
				
		
    		            							
			    		Posts: 817 | Subs: 5
Did you set rebuild_entity and rebuild_squad in ebps/health_ext of the wreck?
			
		
									14 Apr 2021, 19:44 PM
				
	#5					
								
					
				
		Posts: 18
Yes, I think :

			
		
PAGES (1)
		
	1 user is browsing this thread: 
	1 guest	
	
		
	
Livestreams
						 					 | 
					
						 | 
					
						 | 
					542 | ||
						 					 | 
					
						 | 
					
						 | 
					7 | ||
						 					 | 
					
						 | 
					
						 | 
					6 | ||
						 					 | 
					
						 | 
					
						 | 
					4 | ||
						 					 | 
					
						 | 
					
						 | 
					3 | ||
						 					 | 
					
						 | 
					
						 | 
					1 | 
Ladders Top 10
- 
							#Steam AliasWL%Streak
 
- 1.46467.874+6
 - 2.794136.854-1
 - 3.867297.745+3
 - 4.14465.689-1
 - 5.401212.654+3
 - 6.21156.790-2
 - 7.300128.701+2
 - 8.353186.655+2
 - 9.501325.607+4
 - 10.327118.735-1
 
Replay highlight
VS
					- 
									
									cblanco ★								 - 
									
									보드카 중대								 
- 
									
									VonManteuffel								 - 
									
									Heartless Jäger								 
											
						Einhoven Country
						
							
								
									
								
								
								
								
				Honor it
								15
							
						
						
												
							
								
									Download
								2713
							
						
												
					Board Info
						764 users are online:
									764 guests
					
		
			0 post in the last 24h
3 posts in the last week
25 posts in the last month
		
		3 posts in the last week
25 posts in the last month
			
			
				Registered members: 62037
Welcome our newest member, Ga6789
Most online: 4501 users on 26 Oct 2025, 01:00 AM
	Welcome our newest member, Ga6789
Most online: 4501 users on 26 Oct 2025, 01:00 AM
	
 
 