. . . Posted August 28, 2016 Share Posted August 28, 2016 (edited) Hello, I have a question . So, my question is, is there a way to resize the effect "inst.components.freezable:SpawnShatterFX()" gives off? Can someone tell me if this would be possible or not? Thanks you very much for reading my question !!! Edited August 29, 2016 by SuperDavid Link to comment Share on other sites More sharing options...
DarkXero Posted August 28, 2016 Share Posted August 28, 2016 You can resize the FX, but you also have this: -- 1, 2, 3, 4, 5 -- default 1 inst.components.freezable:SetShatterFXLevel(4) Link to comment Share on other sites More sharing options...
. . . Posted August 28, 2016 Author Share Posted August 28, 2016 8 minutes ago, DarkXero said: You can resize the FX, but you also have this: -- 1, 2, 3, 4, 5 -- default 1 inst.components.freezable:SetShatterFXLevel(4) Every number that goes higher makes it bigger, right? Link to comment Share on other sites More sharing options...
DarkXero Posted August 28, 2016 Share Posted August 28, 2016 7 minutes ago, SuperDavid said: Every number that goes higher makes it bigger, right? This function only works for 1, 2, 3, 4, 5. Those numbers alter the animation picked for the FX. So the bigger the number (up to 5), the bigger the animation. Try those numbers out, and if you aren't satisfied, I can look into hooking into SpawnShatterFX to grab the FX and increase its scale manually. Link to comment Share on other sites More sharing options...
. . . Posted August 28, 2016 Author Share Posted August 28, 2016 (edited) 17 minutes ago, DarkXero said: This function only works for 1, 2, 3, 4, 5. Those numbers alter the animation picked for the FX. So the bigger the number (up to 5), the bigger the animation. Try those numbers out, and if you aren't satisfied, I can look into hooking into SpawnShatterFX to grab the FX and increase its scale manually. I tried all the numbers for my event but they're all are huge compared to my character ! I kinda want the fx to be a little bigger than my character not much bigger! inst:ListenForEvent("attacked", function(inst, data) if inst.gelid_mode == true then inst.components.freezable:SpawnShatterFX(1) end end) It would really be a great help if you could help because i'm not really smart ... Thank you so much for your help DarkXero !!!!!!!! Edited August 28, 2016 by SuperDavid Link to comment Share on other sites More sharing options...
DarkXero Posted August 28, 2016 Share Posted August 28, 2016 Alright, then do it like this: local function SpawnCustomShatter(inst, fxlevel, scale) local fx = SpawnPrefab("shatter") if fx ~= nil then fx.entity:AddFollower() fx.Follower:FollowSymbol(inst.GUID, "torso", 0, 0, 0) if fx.components.shatterfx ~= nil then fx.components.shatterfx:SetLevel(fxlevel) end fx.Transform:SetScale(scale, scale, scale) end end inst:ListenForEvent("attacked", function(inst, data) if inst.gelid_mode == true then SpawnCustomShatter(inst, 1, 2) end end) fxlevel is 1, 2, 3, 4, 5. Like before. scale can be 0, 1, 2, 1.5, 0.234, 0.7, 3.999. Any number to scale the fx. Link to comment Share on other sites More sharing options...
. . . Posted August 28, 2016 Author Share Posted August 28, 2016 @DarkXero Thank you so, so very much * 999 You're so awesome DarkXero without you my mod would be nothing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
Maris Posted August 29, 2016 Share Posted August 29, 2016 12 hours ago, SuperDavid said: [SOLVED] Question LOL Very informative! I think it's better to rename it to [SOLVED] Resize freeze effect or something like that. Ty. 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