Giano Posted June 8, 2019 Share Posted June 8, 2019 Hi, Just need to know why this piece here is behaving strange. I want to modify the settings of fire spreading in standardcomponent. GLOBAL.MakeSmallPropagator = function (inst) inst:AddComponent("propagator") inst.components.propagator.acceptsheat = true inst.components.propagator:SetOnFlashPoint(DefaultIgniteFn) inst.components.propagator.flashpoint = 5 + math.random()*5 inst.components.propagator.decayrate = 1 inst.components.propagator.propagaterange = 3 inst.components.propagator.heatoutput = 8 inst.components.propagator.damagerange = 2 inst.components.propagator.damages = true return inst end Putting this in modmain works but only the last two inst (damagerange and the boolean damages) Any idea why? The fire will not spread at all. Thanks in advance i'm new to coding. Just trying to reversal engineering. Link to comment https://forums.kleientertainment.com/forums/topic/107317-help-with-propagator/ Share on other sites More sharing options...
Giano Posted June 9, 2019 Author Share Posted June 9, 2019 Never mind. I figured out. It was a missing function. Sorry for bothering. The topic can be deleted. Link to comment https://forums.kleientertainment.com/forums/topic/107317-help-with-propagator/#findComment-1207389 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