Login

russian armor

Buildings not conquerable

23 Sep 2018, 06:21 AM
#1
avatar of kibe777

Posts: 31

Hi everyone...I tried 1 search but I did not find anything.

As a title, I would like to make buildings not conquerable by the infantry.

Thank you all
5 Oct 2018, 19:57 PM
#2
avatar of Invictus
Donator 11

Posts: 137

Alright, Janne525 got the ''fix'' after working back and forth for a few weeks.

First you must add all your buildings in the map to an entity group and call this group eg_buildings

Then you replace the mapname_ID.scar with the following text:

function OnInitID()

-- [[ Markers ]]

-- [[ Squad Groups ]]

-- [[ Entity Groups ]]
eg_buildings = EGroup_CreateIfNotFound("eg_buildings")
Rule_AddOneShot(eg_buildings_Init, 0.125)
end

function eg_buildings_Init()
Modify_DisableHold(eg_buildings, true)
end

Do this AFTER you save the map, then extract the package in worldbuilder and still without saving the map you leave the worldbuilder.

Load up your map and you can proceed to play it without units being able to garrisson buildings.

Hope this was clear enough!
12 Oct 2018, 06:53 AM
#3
avatar of kibe777

Posts: 31

Alright, Janne525 got the ''fix'' after working back and forth for a few weeks.

First you must add all your buildings in the map to an entity group and call this group eg_buildings

Then you replace the mapname_ID.scar with the following text:

function OnInitID()

-- [[ Markers ]]

-- [[ Squad Groups ]]

-- [[ Entity Groups ]]
eg_buildings = EGroup_CreateIfNotFound("eg_buildings")
Rule_AddOneShot(eg_buildings_Init, 0.125)
end

function eg_buildings_Init()
Modify_DisableHold(eg_buildings, true)
end



Do this AFTER you save the map, then extract the package in worldbuilder and still without saving the map you leave the worldbuilder.

Load up your map and you can proceed to play it without units being able to garrisson buildings.

Hope this was clear enough!


Thx mate..
1 user is browsing this thread: 1 guest
CoH1 Final Battle Grand Final

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • Oberkommando West flag Oziligath
  • The British Forces flag T.R. Sidewinder
uploaded by Oziligath

Board Info

263 users are online: 1 member and 262 guests
Yukiko
12 posts in the last 24h
217 posts in the last week
798 posts in the last month
Registered members: 33123
Welcome our newest member, Hjax
Most online: 1221 users on 25 Feb 2020, 12:03 PM