Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Need a script to show/hide the name of an specific player

Share questions and tutorials related to the map editor. Share you maps in the Superfighters Deluxe Custom Maps section.
Forum rules
By using the forum you agree to the following rules.
Post Reply
ManiacLoser
Meatbag
Posts: 2
Joined: Thu May 13, 2021 8:40 pm

Need a script to show/hide the name of an specific player

Post by ManiacLoser » Fri May 14, 2021 6:17 pm

Hi there, I'm new here, anyway...
So I'm making an campaign map and as I don't know how to script I just copy and paste official campaigns map codes, but I haven't found a script which would help me to show/hide the name of a boss.

I want to make a boss similar to funnyman (except a little improvised) he will come out from doors use a weapon and then get out, as it is improvised everytime he "gets out" he gets teleported to an inaccessible section, I don't want players to see that he randomly teleported, that's why I need the hide name script, the show one I need it when he comes back.

I'll be waiting for any answers, thanks for reading.
0 x

User avatar
SomeOne7
Meatbag
Posts: 2
Joined: Sat Feb 13, 2021 12:00 am
SFD Account: SomeOne7
Gender:

Post by SomeOne7 » Wed May 26, 2021 1:34 am

0 x

ManiacLoser
Meatbag
Posts: 2
Joined: Thu May 13, 2021 8:40 pm

Post by ManiacLoser » Mon May 31, 2021 2:58 pm

I specifically asked for a script to hide/show the name in middle of a game, not to hide the name before the game starts, the problem here is that I don't want that people see that the boss randomly teleported, and youtube links are not helpfull at all which also shows the lazyness here.
1 x

User avatar
Odex64
Superfighter
Superfighter
Posts: 172
Joined: Sat Jul 29, 2017 12:39 pm
Title: Content Creator
SFD Account: Odex64
Started SFD: PreAlpha
Location: Italy
Gender:
Age: 22

Post by Odex64 » Tue Jun 01, 2021 8:44 am

call HideName within the trigger

Code: Select all

public void HideName(TriggerArgs args)
{
    if (args.Sender is IPlayer)
    {
        IPlayer player = (IPlayer) args.Sender;
        // if (player.CustomId == "theBoss") further check
        player.SetNametagVisible(false);
    }
}
You'd better join the discord server if you want immediate responses.
2 x
Image

Post Reply