Hi coggers! I'm looking for a way to modify a cog, which plays a one-off sound upon entering a sector, so that it also prints a message on-screen too. (Subtitles for a monologue)
Here's the cog in question:
Thanks for your advice in advance.
Here's the cog in question:
Code:
----------------------------------------------------------------------- symbols message entered sector triggerSector linkid=1 sound theSound flex soundVolume=1 int soundId=-1 local int done=0 local end code entered: if (GetSenderID() == 1) { // match linkid if (!done) { soundId = PlaySoundGlobal (theSound, soundVolume, 0, 0); done = 1; } } return; end -----------------------------------------------------------------------
Thanks for your advice in advance.