• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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