• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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