Lmfaocj
Active Member
- Reaction score
- 1
I was wondering if its possible to make only one person not see a special effect
function AddSpecialEffectExceptForOnePlayer takes string model, player whichPlayerShouldNotSeeIt, real X, real Y returns effect
local string modelPath = model
if GetLocalPlayer() == whichPlayerShouldNotSeeIt then
set modelPath = ""
endif
return AddSpecialEffect(modelPath, X, Y)
endfunction
function CreateSpecialEffectForPlayer takes real x, real y, player p, string s returns effect
if GetLocalPlayer() != p then // Check if the local player is not the passed player
set s = "" // Set s to nothing
endif
return AddSpecialEffect(s, x, y) // Add the special effect. The effect will only have a visible model on the passed player's
// computer, because it was changed locally.
endfunction