This function creates a World Tip, similar to the one shown when aiming at a Thruster where it shows you its force.
This function will make a World Tip that will only last 50 milliseconds (1/20th of a second), so you must call it continuously as long as you want the World Tip to be shown. It is common to call it inside a Think hook.
Contrary to what the function's name implies, it is impossible to create more than one World Tip at the same time. A new World Tip will overwrite the old one, so only use this function when you know nothing else will also be using it.
See SANDBOX:PaintWorldTips for more information.
This function is only available in Sandbox and its derivatives
number dieTime=SysTime() + 0.05
Creates a World Tip where the player is looking. If the player is looking at an entity, the World Tip is positioned on the entity.
hook.Add( "Think", "draw World Tip", function() local ply = Entity( 1 ) local tr = ply:GetEyeTrace() local pos = tr.HitPos -- will be unused if ent is valid local ent = tr.Entity AddWorldTip( nil, "Hello world!", nil, pos, ent ) end )