russian armor

Spawning units in a building

14 May 2019, 07:12 AM
avatar of jcbarth

Posts: 24

I am currently spawning a couple AI friendly squads into a building with enemies surrounding it, however, every time they spawn, they immediately vacate the building and retreat. Any ideas on how to force the squads to remain in the building? I'm currently using a scenario pack in mod builder.
15 May 2019, 02:10 AM
avatar of Lugie
Senior Modmaker Badge

Posts: 327

Have you disabled the friendly ai? If you want to keep it enabled by default, you have to lock the units to make sure it cant control them.
15 May 2019, 02:17 AM
avatar of jcbarth

Posts: 24

I have not. How do I do that? They are also not fighting back against the enemy AI for some reason.
15 May 2019, 03:14 AM
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

You could lock just the squad or squads using AI_LockSquad or AI_LockSquads.

15 May 2019, 03:31 AM
avatar of jcbarth

Posts: 24

That worked! Thanks for your help :)
15 May 2019, 03:52 AM
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

Sure thing. Glad it worked.
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
Data provided by Relic Relic Entertainment

Replay highlight

  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

105 users are online: 1 member and 104 guests
22 posts in the last 24h
114 posts in the last week
611 posts in the last month
Registered members: 40343
Welcome our newest member, MichaelBalter
Most online: 1221 users on 25 Feb 2020, 12:03 PM