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 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.