Jump to content

cannot setting Say() duration on server


Recommended Posts

It's the player.components.talker:Say(self, script, duration, ...) method

I use this method on client console and it works correctly. However, when I use the same method on the dedicated server (in the server console, or with a mod), the 'duration' parameter seems to be ignored and the Say() content only shown about 2 seconds as the default value.

How can I make the duration works correctly?

Link to comment
Share on other sites

@4Oranges, welcome to the forums.

That function has defined as

function Talker:Say(script, time, noanim, force, nobroadcast, colour)

Thus it should be called

player.components.talker:Say(script, duration, ...)

(self parameter is provided automatically by using the colon syntax).

 

Another reason for not working as expected could be some enabled mod that overwrites the function in an incorrect way.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...