• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[JASS] Blighting area changes ground texture

Status
Not open for further replies.
Level 28
Joined
Feb 2, 2006
Messages
1,651
When using
JASS:
SetBlight                takes player whichPlayer, real x, real y, real radius, boolean addBlight returns nothing
to manually blight or reset blight on an area it changes the ground texture to a different one.
How can I prevent this?
Is this a bug with the gound texture? Do I have to store the ground texture with GetTerrainType() before?
 
Level 28
Joined
Feb 2, 2006
Messages
1,651
Now the infection system looks fine but it does not use blight. I could modify it but I'd like to do it myself. Right now I am trying to get a rect and to store each cell's tile point. Do you know how I have to store each tile point. Do I have to store each X|Y increasing by 1.0 every step or do I have to store each tilepoint with the size of 128 * 128?

How are circles realized? For example if you call:
JASS:
 SetBlight                takes player whichPlayer, real x, real y, real radius, boolean addBlight
Does it basically blight a square and then some tiles at the edges to approximate something like a circle?

If there is no benefit from blighting a circle except that it looks better and makes more sense to the spells area graphic maybe I am just using a simple rect.
 
Status
Not open for further replies.
Top