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-24 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 03:26:29 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: Invisible if standing still for X seconds?  (Read 235 times)
Wangwang
Newbie
*
Posts: 20


View Profile Email
« on: June 03, 2011, 09:05:55 PM »

I'm attempting to make a race that blends in with the surroundings if certain conditions are met, in this case standing still for more than a certain amount of time. I have all my floats set, and a possible timer, but I'm not sure where to go from there.

Any help would be appreciated :3
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #1 on: June 03, 2011, 09:29:19 PM »

create timer to see if the location is the same as last time
Logged

DarkEnergy
Glider⠠⠵
Global Moderator
Sr. Member
*****
Posts: 413


⠠⠵


View Profile
« Reply #2 on: June 04, 2011, 04:30:08 AM »

Have a timer that slowly decreases the Alpha until it reaches 0 or whatever your minimum is. (Nice fading effect)

Check if the player moved in OnPlayerRunCmd and reset his alpha.

Ownz method would make the player visible if he gets knocked around by something. Don't know if you want that.
« Last Edit: June 04, 2011, 04:31:39 AM by TedTheodoreLogan » Logged

Wangwang
Newbie
*
Posts: 20


View Profile Email
« Reply #3 on: June 05, 2011, 08:42:01 PM »

I gave ownz's method a try, worked out nicely ty Smiley
Logged
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!