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

Trigger Help

Status
Not open for further replies.
Level 19
Joined
Apr 21, 2013
Messages
1,194
Hey guys i'm working on a map and i need a little help for a trigger.

There is a volcano and it is erupting in the game. It creates randomly placed effects around itself in a region such as thunder clap, flame strike etc... I need a trigger to kill the units who get in a close range with these effects.

Do i need to create a new variable or is there a predefined method i can use??
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
You can place a dummy unit somewhere in the map and make it damage the area, Unit - Damage area. Make the damage very high.

An alternative is

set point = some location
set group = units within x of point
pick all units in group
--kill picked unit
create effect at point
remove point
destroy group

http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/
 
event
. every 10 seconds
conditions
actions
. destroy effect1
. set tempPoint = random location in region
. create effect at location
. set effect1 = last created effect
. move dummy unit to tempPoint

make another trigger like this
event
. unit in range of dummy unit
conditions
actions
. kill triggering unit

make sure to preplace the dummy unit for this trig. also make it invisible and never kill the dummy unit u can use one unit for each effect.
 
Status
Not open for further replies.
Top