send reminder||doc135597

September 20, 2022

Format

 Player:sendTip(tipType, textKey, keepTime) 
  • The class to which the function belongs:Player

Description

Display informative text on the client


Parameters

Variable name type Description
tipType int prompt type
textKey string text key
keepTime int Display frame number


Code Samples

In the server-side mount script of the player entity template, register the callback function when the player logs in to prompt the player to enter the game

Trigger.RegisterHandler(this:cfg(), "ENTITY_ENTER", function(context)
    local player = context.obj1
    player:sendTip(2, "Welcome", 30)
end)