• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Hiding neutrals on minimap in game.

Status
Not open for further replies.
Level 4
Joined
Apr 7, 2012
Messages
63
I realised that I can hide the neutrals in Object Editor, but I want to make that the players can't set it back to show creep camps in game, I realised they did this in Gaia's Retaliation and i want to do the same.
Any suggestions will be appreciated.
 
Level 4
Joined
Apr 7, 2012
Messages
63
ok yes, I'll try the neutral victim, and not other player since I use a certain threat system...but I can try both will see which one fits best my map.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
There is a way to turn off the creep camp controls with a jass function. I think it was SetMapFlag(). Dont remember the exact syntax, though.

JASS:
native SetMapFlag takes mapflag whichMapFlag, boolean value returns nothing

    constant mapflag MAP_FOG_HIDE_TERRAIN =             ConvertMapFlag(1)
    constant mapflag MAP_FOG_MAP_EXPLORED =             ConvertMapFlag(2)
    constant mapflag MAP_FOG_ALWAYS_VISIBLE =           ConvertMapFlag(4)

    constant mapflag MAP_USE_HANDICAPS =                ConvertMapFlag(8)
    constant mapflag MAP_OBSERVERS =                    ConvertMapFlag(16)
    constant mapflag MAP_OBSERVERS_ON_DEATH =           ConvertMapFlag(32)

    constant mapflag MAP_FIXED_COLORS =                 ConvertMapFlag(128)
   
    constant mapflag MAP_LOCK_RESOURCE_TRADING =        ConvertMapFlag(256)
    constant mapflag MAP_RESOURCE_TRADING_ALLIES_ONLY = ConvertMapFlag(512)

    constant mapflag MAP_LOCK_ALLIANCE_CHANGES =        ConvertMapFlag(1024)
    constant mapflag MAP_ALLIANCE_CHANGES_HIDDEN =      ConvertMapFlag(2048)

    constant mapflag MAP_CHEATS =                       ConvertMapFlag(4096)
    constant mapflag MAP_CHEATS_HIDDEN =                ConvertMapFlag(8192)

    constant mapflag MAP_LOCK_SPEED =                   ConvertMapFlag(8192*2)
    constant mapflag MAP_LOCK_RANDOM_SEED =             ConvertMapFlag(8192*4)
    constant mapflag MAP_SHARED_ADVANCED_CONTROL =      ConvertMapFlag(8192*8)
    constant mapflag MAP_RANDOM_HERO =                  ConvertMapFlag(8192*16)
    constant mapflag MAP_RANDOM_RACES =                 ConvertMapFlag(8192*32)
    constant mapflag MAP_RELOADED =                     ConvertMapFlag(8192*64)


no tag about creep camps whatsoever
Also MAP_CHEATS and MAP_CHEATS_HIDDEN doesnt work
there is SetCreepCampFilterState(boolean) but its the same as Game - Hide/Show Creep camps on the minimap
 
Status
Not open for further replies.
Top