Posted by: SkyMix_RMT - Sunday, June 4, 2017 9:16:19 AM
Already tried messing with the flags and I cant use map.ini so do you guys know a method?
Posted by: UTD^Force - Sunday, June 4, 2017 11:04:08 AM
[code=plain]*** IF ***
Player 'PlyrGLA' has entered building named Unit 'asd'
*** THEN ***
Unit 'asd' empties.
[/code]
Uncheck Deactivate upon success.
-----------------
I just went to world builder and tried the first thing that came into my mind, I don't know if this is exactly what you want.
Posted by: AdrianeMapMaker - Monday, June 5, 2017 12:50:22 AM
well it works with mine ... i am using map.ini several times at any map even multiplayer
Posted by: Annihilationzh - Monday, June 5, 2017 8:24:59 AM
Here's an alternative for all players:
[code=plain]*** IF ***
[???] Unit 'building' is empty.
*** THEN ***
Null operation. (Does nothing.)
*** ELSE ***
Unit 'building' empties.[/code]
You could also do a check for plyrCivilian.
[quote=SkyMix_RMT;145385]I cant use map.ini so do you guys know a method?[/quote]
Is this because you don't know the code or other reasons? It's surprisingly simple.
E.G. disabling the airport:
[code]Object CivilianAirport
RemoveModule ModuleTag_05
End[/code]
Posted by: UTD^Force - Monday, June 5, 2017 11:53:45 AM
He can't use map.ini because it will cause a mismatch when playing online.
:3
Posted by: i^love^mixery - Wednesday, June 7, 2017 1:01:23 PM
To increase playability of your maps do not use scripts of that kind as people won't know whether they can get inside of buildings or not without trying.
I'd highly suggest to simply make the buildings unselectable in the objects properties window instead.
Posted by: AdrianeMapMaker - Wednesday, June 7, 2017 8:51:10 PM