[GS] Simple way to output a text message to the game UI with lua ?

__jack__

Warlord
Joined
Dec 29, 2009
Messages
141
Hi,

Stupid question it is very easy to get a text message printed into the lua.log using print().
Is there an equivalent to display a textstring in game to everyplayer ?

(goal is that they get a visual confirmation the script has been succesfully run: but it could be useful in other context)
 
There's no direct equivalent. There are methods that can be used, but they require (as of last time I looked into it) a UI context -- so if the script is running as a GameplayScript context this complicates things since there needs to be communication made from the InGame lua side of the engine to the UI side of the engine.
 
Thanks,

I found a way to output stuff using NotificationManager.SendNotification(Players, NotificationTypes.USER_DEFINED_1, "bla bla bla")
 
Top Bottom