Buff visible only to 1 player

temri

New Member
Reaction score
0
Hello im currently making a RPG with a fighting system and I want to know if it's possible to have a buff that only 1 player can see so the player now what monster he targeting.
 

Viikuna

No Marlo no game.
Reaction score
265
Yes it is possible. You just need to use local string for model path and use GetLocalPlayer to make it be different in different computers.

GetLocalPlayerTutorial

Effect for one player:
JASS:

function LocalEffect takes string modelpath, real x, real y, player forplayer returns effect
    if GetLocalPlayer()!=forplayer then
        set modelpath=""
    endif
    return AddSpecialEffect(modelpath,x,y)
endfunction

function LocalTargetEffect string modelpath, widget target, string attach, player forplayer returns effect
    if GetLocalPlayer()!=forplayer then
        set modelpath=""
    endif
    return AddSpecialEffectTarget(modelpath,target,attach)
endfunction
 

temri

New Member
Reaction score
0
Im not very good with JASS.It's impossible to do it with GUI or I must learn JASS?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top