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
Buildings not conquerable
23 Sep 2018, 06:21 AM
#1
Posts: 31
5 Oct 2018, 19:57 PM
#2
1
Posts: 138
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!
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
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..
PAGES (1)
0 user is browsing this thread:
Livestreams
27 | |||||
14 | |||||
80 | |||||
7 | |||||
4 | |||||
2 | |||||
1 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.40762.868+5
- 2.855.944+26
- 3.843223.791+6
- 4.659233.739+2
- 5.294157.652+2
- 6.286108.726+37
- 7.12243.739-1
- 8.309114.730+5
- 9.193100.659+3
- 10.10829.788+9
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
13
Download
1305
Board Info
652 users are online:
652 guests
2 posts in the last 24h
10 posts in the last week
38 posts in the last month
10 posts in the last week
38 posts in the last month
Registered members: 51387
Welcome our newest member, tourkemedan
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, tourkemedan
Most online: 2043 users on 29 Oct 2023, 01:04 AM