wbykos Posted June 22, 2015 Share Posted June 22, 2015 By now they disappear after 1 sec, i need increase this time. Shall i add some parameter? Link to comment Share on other sites More sharing options...
DarkXero Posted June 22, 2015 Share Posted June 22, 2015 -- parameters(script, time, noanim, force, nobroadcast, colour)So for a 20 second message:ThePlayer.components.talker:Say("Hello", 20)If you want to change the default 2.5 time of the Say function of talker:local mintime = 7AddComponentPostInit("talker", function(self) local old = self.Say self.Say = function(self, script, time, noanim, force, nobroadcast, colour) if time == nil or time < mintime then time = mintime end old(self, script, time, noanim, force, nobroadcast, colour) endend) Link to comment Share on other sites More sharing options...
Maris Posted June 23, 2015 Share Posted June 23, 2015 @DarkXero, let me to show you a little bit shorter answer: local mintime = 7AddComponentPostInit("talker", function(self) local old = self.Say self.Say = function(self, script, time, ...) if time == nil or time < mintime then time = mintime end old(self, script, time, ...) endend) Link to comment Share on other sites More sharing options...
wbykos Posted June 23, 2015 Author Share Posted June 23, 2015 DarkXero, Maris, can i implement this on server side or only on client side? I dont know whats wrong with this forum, but mine thread is duplicated. First thread i've started yesterday but didnt see him after 6 hours i've started another. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now