UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Hide/Show an FX/Model to a Certain Player

broken avatar :(
Created 12 years ago
by PROxFTW
0 Members and 1 Guest are viewing this topic.
1,668 views
broken avatar :(
×
broken avatar :(
Location: usYork, SC
Date Registered: 15 March 2014
Last active: 7 years ago
Posts
214
Respect
Forum Rank
Mr. Elemental
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
WaW Scriptor
Signature
WaW Scriptor
×
PROxFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
PROxFTW's Contact & Social LinksPROxFTWPROxFTWPROxFTWPROxFTW
Ok, so I was wondering if there was a way to hide/show a model/FX to a certain player via script. Simply what I have done was I made a tag_origin to play an FX on. However if a player doesn't have the perk, they should be unable to see it. And if they do have the perk they should be able to see it. Talking about vulture aid with the Smoke, Ammo, Points thing. I have tried SetVisible/SetInvisibleToPlayer, however if the player goes down then re-buys the perk they can't see the fx anymore. I know hide() and show() won't work as they affect all players. Is there anything else or is there a way to get it to work with SetVisible/SetInvisible?
Marked as best answer by PROxFTW 12 years ago
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 3 years ago
Posts
5,544
Respect
6,646Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
I have tried SetVisible/SetInvisibleToPlayer, however if the player goes down then re-buys the perk they can't see the fx anymore.
This sounds like a bug in your script, not a limitation of setinvisibletoplayer().

 
Loading ...