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
SHOUT IT OUT!



Osinyagov: Suddenly, coh2 is slowly dying, but you can play it, playerbase still big enough
09 Apr 2025, 17:00 PM
09 Apr 2025, 17:00 PM
SupremeStefan: https://steamcommunity.com/sharedfiles/filedetails/?id=3457737797
04 Apr 2025, 12:42 PM
04 Apr 2025, 12:42 PM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus 
02 Apr 2025, 00:16 AM

02 Apr 2025, 00:16 AM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" 
01 Apr 2025, 20:29 PM

01 Apr 2025, 20:29 PM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
01 Apr 2025, 02:36 AM
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
27 Mar 2025, 15:46 PM
27 Mar 2025, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
27 Mar 2025, 09:34 AM
27 Mar 2025, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
27 Mar 2025, 09:32 AM
27 Mar 2025, 09:32 AM
Rosbone: To be fair, it was a thank you to early fans right? They said it was not free for long and it would become a pay DLC at some point.
27 Mar 2025, 09:30 AM
27 Mar 2025, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy 
27 Mar 2025, 04:31 AM

27 Mar 2025, 04:31 AM
Rosbone: Congrats to Relic. Looks like Coh3 has finally usurped Coh2 s the popular Coh. You smell terrific.
.
24 Mar 2025, 02:46 AM

24 Mar 2025, 02:46 AM
Livestreams
![]() |
![]() |
![]() |
17 | ||
![]() |
![]() |
![]() |
8 | ||
![]() |
![]() |
![]() |
6 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.59482.879+8
- 2.43163.872+9
- 3.13644.756+10
- 4.14839.791+7
- 5.286162.638+4
- 6.18151.780+4
- 7.313114.733+9
- 8.18377.704+4
- 9.14265.686+10
- 10.388260.599+2
Replay highlight
VS
-
cblanco ★
-
보드카 중대
-
VonManteuffel
-
Heartless Jäger

Einhoven Country

Honor it
14

Download
1368
Board Info
269 users are online:
1 member and 268 guests
Angrade (Ægion)
Angrade (Ægion)
1 post in the last 24h
3 posts in the last week
49 posts in the last month
3 posts in the last week
49 posts in the last month
Registered members: 53706
Welcome our newest member, rr88estate
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, rr88estate
Most online: 2043 users on 29 Oct 2023, 01:04 AM