• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Fade Filters? Help please?

Status
Not open for further replies.
Level 18
Joined
Jan 21, 2006
Messages
2,552
Fade filters apply to every player in the game, however by nesting the function call in an if-statement that filters out any player other than the local player (which is the player at which the machine is processing the code for in a multiplayer environment). The result of this would be a player-specific fade-filter.

There must be a tutorial on GetLocalPlayer() for the uber nubers.
 
@Hodge-Podge: By the way, cinematic filter creation desyncs when used in GetLocalPlayer() blocks.

Instead, just use the "Show/hide" filter functions. Ex:
  • //Create the filter here... Cinematic - Fade Filter or whatever
  • Cinematic - Hide filter
  • Custom Script: if GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
    • Cinematic - Cinematic - Show filter
  • Custom Script: endif
This will display it only for the owner of the triggering unit. Make sure you create the filter before it, not in the block.
GetLocalPlayer() -- Tutorial
GetLocalPlayer() -- Brief Description
 
Status
Not open for further replies.
Top