corn072 Posted February 3, 2025 Share Posted February 3, 2025 My mod uses the "SpawnPrefab" function to create certain effects. ===== Code example ===== local fx = GLOBAL.SpawnPrefab("spawn_fx_medium") fx.Transform:SetPosition(x, y, z) ======================= At this time, the sound of the effect is played automatically, but if multiple effects are called, the sound may overlap. Please tell me how to separate voice in SpawnPrefab. I am leaving a link and attachment for those who want to try the mod themselves or check the full code. https://steamcommunity.com/sharedfiles/filedetails/?id=3417072441 modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/163656-i-have-a-question-about-spawnprefabs-voice-control/ 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