Effect Visible Only to Allies?

Blackrage

Ultra Cool Member
Reaction score
25
How do you make effects invisible to enemies, but visible to allies?

+rep to the one who answers.
 

The Undaddy

Creating with the power of rage
Reaction score
55
You create an empty string variable ,and then do (in the trigger):

Code:
custom script: if IsPlayerAlly(GetLocalPlayer(),[U]Player(0)[/U]) then
set s = "ModelPath"
custom script: endif

Then create the effect with path s.It will be visible only for allies of player 1.
I'll assume you don't know jass and tell you how you can replace Player(0).

Player(0) is player 1
Player(1) is player 2 etc.
GetTriggerPlayer() is triggering player.
GetOwningPlayer(GetTriggerUnit()) is Owner of Triggering unit.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top