Jump to content

Help with propagator


Recommended Posts

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

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.

×
  • Create New...