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

Trigger to remove unit from game.

Status
Not open for further replies.
Level 3
Joined
Aug 29, 2007
Messages
44
Hey, thanks for taking the time to look at this post.


My problem is, I can't seem to get the trigger I need to work, I have created a trigger that basically works like this.


"Player leaves the game with a defeat"

"Triggering Player 1 or 2"

"Remove [Large Horizontal Rocks from the game]"
"Remove [Line Of Sight and Pathing Blocker 2x2 from the game]

I have set these both up in the manner I would on warcraft 3, but they don't work.

I also want to make it so when a player loses they can opt to spectate.



If anybody could help me I will provide you with baked goods.
 
Level 3
Joined
Aug 29, 2007
Messages
44
  • 1-2
    • Events
      • Player - Player 1 leaves the game with Defeat
      • Player - Player 2 leaves the game with Defeat
    • Local Variables
    • Conditions
    • Actions
      • Unit - Kill Destructible Rocks - Huge Horizontal [19.00, 44.00]
      • Animation - Remove Pathing and Sight Blocker 2x2 Doodad doodads in the 1-2 region
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
You get all defeat triggers to call a function (to remove the appropiate rocks) passing the player which lost.

Yes this may add some coupling to the script but it is probably more reliable than using the events (as the events can be overloaded if too many listners are added).
 
I believe those action functions loop null.
I've had similar issues.
I think destructible rocks are doodads.
A work around would be to create a damage effect on the rocks when the player leaves.
The effect is the rocks physically being destroyed rather than just removed.
And just removing the animation on the footprints wont do anything. They don't even use animations.
 
Status
Not open for further replies.
Top