holschuh Posted July 5, 2015 Share Posted July 5, 2015 Hi, i have an model with an child pivot which have an noise.lua script (source sound) attached. I save the model as prefab and when i load this by code the sound no longer plays. If i attach the prefab to an map manually sound plays... Is there an solution or workaround for. self.enemy=Prefab:Load("Prefabs/cow2.pfb") cu Volker Quote Link to comment Share on other sites More sharing options...
holschuh Posted July 5, 2015 Author Share Posted July 5, 2015 HI, i workaround it by code making an pivot with the noise.lua script - save this also as prefab and load both and do setparent... self.enemy=Prefab:Load("Prefabs/cow2.pfb") self.step=Prefab:Load("Prefabs/cowsteps.pfb") self.step:SetParent(self.enemy) cu Volker Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.