• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 63
Joined
Jan 18, 2005
Messages
27,191
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