Nosidda Posted July 17, 2022 Share Posted July 17, 2022 I want woodie to say something when he transforms but idk how to do it. Link to comment https://forums.kleientertainment.com/forums/topic/141849-how-do-i-add-voicelines/ Share on other sites More sharing options...
Bumber64 Posted July 17, 2022 Share Posted July 17, 2022 (edited) inst.components.talker:Say("Sample Text") There are more parameters available such as the duration, etc. See: components/talker.lua. Edited July 17, 2022 by Bumber64 Link to comment https://forums.kleientertainment.com/forums/topic/141849-how-do-i-add-voicelines/#findComment-1585725 Share on other sites More sharing options...
Nosidda Posted July 18, 2022 Author Share Posted July 18, 2022 15 hours ago, Bumber64 said: inst.components.talker:Say("Sample Text") There are more parameters available such as the duration, etc. See: components/talker.lua. So if i just pop this code into the modmain and replaced sample text with say Message whenever woodie transforms he would say Message? Link to comment https://forums.kleientertainment.com/forums/topic/141849-how-do-i-add-voicelines/#findComment-1586022 Share on other sites More sharing options...
Bumber64 Posted July 19, 2022 Share Posted July 19, 2022 Something more like this: AddPrefabPostInit("woodie", function(inst) inst:ListenForEvent("transform_wereplayer", function(inst) inst.components.talker:Say("Sample Text") end) end) Link to comment https://forums.kleientertainment.com/forums/topic/141849-how-do-i-add-voicelines/#findComment-1586487 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