dfired Posted October 11, 2021 Share Posted October 11, 2021 I made my custom character a new skin (its a Robot) and i want to know if i can make him get another voice if i switch the skin. Link to comment Share on other sites More sharing options...
TemporarySolutn Posted October 13, 2021 Share Posted October 13, 2021 On 10/11/2021 at 4:53 PM, dfired said: I made my custom character a new skin (its a Robot) and i want to know if i can make him get another voice if i switch the skin. Im not good enough to shlam a bunch of code infront of you but if you are able to check which skin the player is using you should be able to change the voice aswell using the same/similar funciton to how you set up their voice to begin with 1 Link to comment Share on other sites More sharing options...
dfired Posted October 15, 2021 Author Share Posted October 15, 2021 ok i will try Link to comment Share on other sites More sharing options...
Thomas Die Posted October 15, 2021 Share Posted October 15, 2021 inst.components.skinner.skin_name this was from a few months ago but this is where your skin name is 1 Link to comment Share on other sites More sharing options...
dfired Posted October 15, 2021 Author Share Posted October 15, 2021 i dont realy know how to code i just followed the tutorial from hornet . Now i know that i have to check what skin my character is wearing and i know that this inst.components.skinner.skin_name is where my skin name is. but how should i write the code. i would think its like: if components.skinner.skin_name = "MySkinName" than inst.soundsname = "Walter" end is this somehow right Link to comment Share on other sites More sharing options...
Thomas Die Posted October 15, 2021 Share Posted October 15, 2021 pretty much just have the code run whenever your skin changes but if you're lazy like me just have a periodic task run it 1 Link to comment Share on other sites More sharing options...
dfired Posted October 16, 2021 Author Share Posted October 16, 2021 where should i put it and how do i make an periodic task Link to comment Share on other sites More sharing options...
Thomas Die Posted October 17, 2021 Share Posted October 17, 2021 AddPlayerPostInit(function(inst) if not inst:HasTag("your player tagg") then return end inst:DoPeriodicTask(time between each function, function() --the code end) end) 1 Link to comment Share on other sites More sharing options...
dfired Posted October 19, 2021 Author Share Posted October 19, 2021 my code doesnt work Link to comment Share on other sites More sharing options...
Thomas Die Posted October 21, 2021 Share Posted October 21, 2021 Crash? Link to comment Share on other sites More sharing options...
dfired Posted October 21, 2021 Author Share Posted October 21, 2021 no just "Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. " 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