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

lighting efects and units

Status
Not open for further replies.
Level 3
Joined
Sep 29, 2011
Messages
20
i am working on a spell wich will create an lighting barrier in an 500 radius around the point. but i want to know how to block units from passing through the barrier.and also want some dps in very high speed.also want know how to trigger lighting effects for the "eye candy". i don't know triggering very well and have one week on world editor. so IF this is to basic don't go angry on me people :(
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
It is not that basic spell, that can be difficult for beginners :)

You could create a dummy unit to represent the instance of the spell.

Periodically pick units within a range of the dummy. The picking range should be just a bit longer (around 30 distance units) than the actual barrier's width.

If the picked unit is farther away than the barrier's range, move if away from the barrier, just a bit like 10 distance units. If the unit is closer than the barrier but stll very close to the barrier, move it towards the center.

So there are three radii, A, B and C. A is the radius of the barrier. The barrier should have a tolerance, a width. We will call it x. B is A-x, C is A+x.

If a unit is between A and C, move it away from the barrier. If it is between A and B, move it towards the center of the barrier.
 
Level 3
Joined
Sep 29, 2011
Messages
20
let me see what maker said...


move units in and out you mean:

  • every 0.1 seconds of game
  • pick every unit within 500 of InstanceUnit and do (actions):
this didn't looks how i expected to but you should be understanding
how to edit the direction the unit i will move?
i mean if its coming from right of the spell i should move it to the left and the counter to left ins't it?
but how am i supposed to do that? negate the value of facing angle of unit?
 
Last edited:
Status
Not open for further replies.
Top