#Trying to create Hints
1 messages · Page 1 of 1 (latest)
please contact hsm support, labapi isn't hsm
why is Age yellow highlighted?
private static void OnSpawnedTest(PlayerSpawnedEventArgs ev)
{
Task.Delay(2000);
System.Random random = new System.Random();
PlayerDisplay playerDisplay = PlayerDisplay.Get(ev.Player);
playerDisplay.ClearHint();
int Age = random.Next(20, 70);
ev.Player.CustomInfo = "Test: " + Age;
Hint hint = new Hint
{
Text = "Test",
FontSize = 25,
YCoordinate = 1000,
Alignment = HintAlignment.Center
};
playerDisplay.AddHint(hint);
}
this worked for me
just changed some stuff
never use Task.Delay
why
ohh
will this desync it?
private async Task HideHintAfterDelayAsync(Hint hint, PlayerDisplay playerDisplay)
{
await Task.Delay(2500);
hint.Hide = true;
playerDisplay.RemoveHint(hint);
}
just use Timing.CallDelayed 😭
cant find Timing
ok
Task.Delay does nothing here
Because JetBrains Rider doesn't like that the 'A' in "Age" is capitalized
The first step would probably be trying to see if you can display a more simple hint
Like writing "Test" to the player's screen
oh my gosh

writing int Age in a method
is evil
Dude let me show you something that infuriates me about rider
One sec I've gotta put away groceries first