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

2 simple questions

Status
Not open for further replies.
Level 2
Joined
Jul 1, 2007
Messages
15
1st

When I make I game on force the computers are not switched on... (i made this place for computers) and users can change their color like on the place for pink blue can play like in a meele map you now i cant fix that :( could you help me please

2nd

I cant make when i player leaves or is defeated his towers and units to die. How to do this

THANKS A LOT !
 
Level 27
Joined
Feb 22, 2006
Messages
3,052
Both questions shall be answered with no effort

Go up to the player properties and forces, select Fixed Player Settings

  • Events
  • Player - A PLAYER GETS OWNED
  • Actions
  • Set ALG = All units owned by Triggering Player
  • Unit Group - Pick all units in ALG and Remove Picked Unit from the Game.
  • Custom Script: call DestroyGroup (udg_ALG)
You need one variable, a unit group variable named ALG.
--donut3.5--
 
Status
Not open for further replies.
Top