View Single Post
Old 04-24-2013, 09:21 PM   #5
Durwyn

 
Join Date: Jul 2011
Location: Belgium
Posts: 264
Thanks: 47
Thanked 67 Times in 54 Posts
Default

Is it possible to know the name of a selected unit in UI?
my dummy npc is being shown if you "multi select" them

i wanna block that like this:

Quote:
Originally Posted by game_commander
<template name="multi_select_unit">
<panel width="50" height="61" watch="MultiSelectActive{index} MultiSelectIndex{index}" ontrigger="if(StringEquals(GetNameFromIndex(param1 ), 'Dummy'),SetVisible(false),SetVisible(true));">
Quote:
Originally Posted by dummy npc
<?xml version="1.0" encoding="UTF-8"?>
<npc
type="Dummy"
scale="1.0"
width="1.0"
height="1.0"
maxhealth="50000"
speed="0"
minimapiconsize="0"
selectionradius="0"
>
</npc>
I tried just like that, but it doesn't work ^^'
__________________
Operating System: Windows 7 x64
Graphic card : Geforce GT 540M
RAM : 8gb
Savage2MapsAI

Last edited by Durwyn; 04-24-2013 at 10:25 PM.
Durwyn is offline   Reply With Quote