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.
This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk
Forum rules
Forum rules
Need a script to show/hide the name of an specific player
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
-
ManiacLoser
- Meatbag
- Posts: 2
- Joined: Thu May 13, 2021 8:40 pm
-
ManiacLoser
- Meatbag
- Posts: 2
- Joined: Thu May 13, 2021 8:40 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
- Odex64
- Superfighter

- Posts: 172
- Joined: Sat Jul 29, 2017 12:39 pm
- Title: Content Creator
- SFD Account: Odex64
- Started SFD: PreAlpha
- Location: Italy
- Gender:
- Age: 24
call HideName within the trigger
You'd better join the discord server if you want immediate responses.
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);
}
}
2 x
