Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-25 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 10:55:06 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Items flag hidden  (Read 249 times)
Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« on: January 03, 2011, 03:01:29 PM »

Please, add hidden flag for items, same way as done for races.

I want to see some items were not available on some maps..
Logged

O_o
Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« Reply #1 on: January 08, 2011, 09:19:48 PM »

items hidden flag now effective

Thanks!

Now, how set hidden flag in item code?
Logged

O_o
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #2 on: January 08, 2011, 09:56:20 PM »

? hidden by default? issue a ServerCommand im guessing?
Logged

DarkEnergy
Frenzzy
Full Member
***
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« Reply #3 on: January 09, 2011, 10:28:20 AM »

With expectation of the future: Should work other flags from war3 item_itemflags variable.

For example something like this:

Quote
public OnMapStart()
{
   new ent = -1;
   if ((FindEntityByClassname(ent, "func_bomb_target")) != -1)
   {
      War3_AddItemFlag(thisItem, "hidden");
   }
   else
   {
      War3_RemoveItemFlag(thisItem, "hidden");
   }
}
Logged

O_o
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2046



View Profile WWW Email
« Reply #4 on: January 09, 2011, 11:22:55 AM »

war3_additemflag is not implemented
Logged

DarkEnergy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!