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

clear selection problem

Status
Not open for further replies.

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
Q1: How to clear selection locally
answer
JASS:
if (GetLocalPlayer() == Player(x)) then
call ClearSelection()
endif

Q2: how can I get distance between points without red?
answer
JASS:
(GetUnitX(unit1)-GetUnitX(unit2))*(GetUnitX(unit1)-GetUnitX(unit2))+(GetUnitY(unit1)-GetUnitY(unit2))*(GetUnitY(unit1)-GetUnitY(unit2))
 
Last edited:
Level 26
Joined
Mar 19, 2008
Messages
3,140
Maggy forgot to post even simpler answer: when you want to ask different question without creating new thread you can go ahead and ask it within your previous one as long as it's not complex one which should be separated from the previous one.

The worst possible decision to make it to "clear" opening post from your issue. Look from a different perpective: a folk via google searches for answer to similar question within wc3 universe - what he get's after visiting your thread? - your mind speaks truth! A spaghetti of posts unrelated with eachother and one question on top which has basically no connection to thread.
 
Status
Not open for further replies.
Top