• 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.

Fog of war remove in part of the map

Status
Not open for further replies.
Level 2
Joined
Oct 6, 2007
Messages
19
i have 4 teams(X) in my map :
________
X 1 | --- X
___|


X ------ X

how do make sure team 1 (with the 1) sees only the spot i marked (with_ and|)
 
Level 6
Joined
Apr 28, 2005
Messages
155
I don't understand your scribbles, but:

  • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from (Center of (Playable map area)) to a radius of 512.00
I assume this is the action you're looking for.
 
Level 3
Joined
Jan 9, 2008
Messages
24
create a region player1_campement and use
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across player1_campement
and this player's campement will be visible for him all the time with or without units

what is the jass code for doing this?
 
Level 3
Joined
Jan 9, 2008
Messages
24
thanx, i did that and got this :

JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Red_Area )
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_001 = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

It worked, but i think i read somewhere that BJ methods use longer time to execute, is that true?

so i tried to change it to this :

JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call CreateFogModifierRect( Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Red_Area, true, true )
endfunction

which didnt work
 
Level 10
Joined
Jun 26, 2007
Messages
659
for some "BJ" functions, there is no "non-BJ" functions
and for many others, the parametters' order isn't the same one

the "non-BJ" function are declared in the following file wich is in the .mpq

EDIT : have you tried to set the last parametter to false?
 

Attachments

  • common.j.war3x.mpq.txt
    133.5 KB · Views: 201
Level 3
Joined
Jan 9, 2008
Messages
24
EDIT : have you tried to set the last parametter to false?
i did try that, with no luck

cosmos you need to start fog modifier if you dont create it with BJ one
thank you, i had to start it, and disable fog of war so the working code for my problem is this :

JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call CreateFogModifierRect( Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Red_Area, true, true )
    call FogModifierStart(GetLastCreatedFogModifier())
    call FogEnableOff(  )
endfunction
 
Status
Not open for further replies.
Top