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

Channel spell help

Status
Not open for further replies.
Level 2
Joined
Feb 9, 2012
Messages
4
How to make the custom channel spell not able to target ground in black areas or outside map boundaries. Blink spell is like this, it wont let you cast in a black boundary limit area.

Could you rewrite that, because I didn't quite get what the question was.
 
Level 13
Joined
Mar 24, 2010
Messages
950
thats not a bad idea for coding it simple, but was hoping the spell was customizable enough to be able to mimic how the blink spell works.

Reason is there is black areas on the map that are not just map boundaries so it would still be able to cast in those black areas. unless i set up a ton more dimensions. I can think of a easy way to code it, but is the channel spell just not have that option for it somewhere? I thought it was suppose to be the most customizable spell lol
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
just get an IsPointWalkable system than use that to check if you can walk there. (this will also apply for cliffs, doodads, etc)
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
Maybe you can use
  • Custom script: if IsLocationVisibleToPlayer(location, player) then
  • *do things here*
  • Custom script: else
  • *abort*
  • Custom script: endif

that will only check if the point is visible. you can see boundary
 
Status
Not open for further replies.
Top