HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

black mask? and target points question?

11-04-2004, 06:36 AM#1
311
ok I have 2 questions
#1 how do I block vision of certain areas, I made regions and did black mask, enabled it and everything it didn't do anything. I want 4parts of my map to be unseen no matter what, its just blackness even if you are right at it.

#2 problem with points, I don't understand these at all. Im trying to make a spell so shockwaves come out in a circular pattern around the hero, I know how to do that, dummy units and stuff is the easy part, but I cant figure out what target points I need to get a circler pattern

I want it like
1shockwave shoots directly north/east/south/west/ne/se/sw/nw so 8 shockwaves total
11-04-2004, 08:05 AM#2
Guest
Quote:
Originally Posted by 311
#1 how do I block vision of certain areas, I made regions and did black mask, enabled it and everything it didn't do anything. I want 4parts of my map to be unseen no matter what, its just blackness even if you are right at it.

I'm almost sure there's no way you can keep the black mask in an area you are exploring.

Quote:
Originally Posted by 311

#2 problem with points, I don't understand these at all. Im trying to make a spell so shockwaves come out in a circular pattern around the hero, I know how to do that, dummy units and stuff is the easy part, but I cant figure out what target points I need to get a circler pattern

I want it like
1shockwave shoots directly north/east/south/west/ne/se/sw/nw so 8 shockwaves total

As target points, use "Point with Polar Offset: Position of (Unit) with offset (Range of shockwave) towards (X degrees)". 90 degrees is North, 180 is West.

Salutions®
11-04-2004, 08:19 AM#3
xxxSpikexxx
polar offset is extremly usefull for abilitys.

i use to make it like this:

For each integerA 1 to 8 do
- create 1 dummy at position of triggering unit
- order last created unit to shockwave position of unit offset by 100 towards integerA * 45 degrees.
- add a 0.2 seconds expiration time to last created unit

so it's repeated 8 times and each time at 45 degrees more, also you don't need to bother with recycling the dummys.
11-04-2004, 09:59 AM#4
iNfraNe
if you REALLY want it not visible to matter what, u could give all units sight line 0. That way it will not see anything, so u should give it a sight line manually with regions or just make all other parts visible.
11-04-2004, 11:36 AM#5
311
ok #1 is solved line of sight blockers :)

#2 still have problems

I did 45 90 135 and so on, but its not how I want


I want the shockwaves to come from the center unit

and 1 go straight n/e/s/w then the 4 diagle ne/se/sw/nw
11-04-2004, 01:02 PM#6
Kishe
Quote:
Originally Posted by 311
#2 still have problems

I did 45 90 135 and so on, but its not how I want


I want the shockwaves to come from the center unit

and 1 go straight n/e/s/w then the 4 diagle ne/se/sw/nw


Make a variable that is real. Set the default to 0.

For each Integer from 1 to 8 do Actions
-Actions
Create dummy caster at position of triggering unit facing (Real Variable) degrees.
Add the casters to a variable array.
Order the units in the variable array to shockwave a point with polar offset by 100(or whatever you want) towards (real variable) degrees
Set the real variable made earlier to ((real variable) + 45)

For each integer from 1 to 8 do actions
-Actions
Remove (variable array) from the game.

-
11-05-2004, 08:15 AM#7
Guest
Quote:
Originally Posted by 311
ok #1 is solved line of sight blockers :)

Be careful, sight blockers don't work for air units (if someone knows how to block air units sight plz tell!!)

Salutions®
11-05-2004, 10:04 AM#8
311
no air units in the game :)

both problems fixed now :) thanks guys
11-05-2004, 01:49 PM#9
iNfraNe
Quote:
Originally Posted by Mara.Jade
Be careful, sight blockers don't work for air units (if someone knows how to block air units sight plz tell!!)

Salutions®
by making it a ground unit and turning off collision I guess... didnt try tho