Jump to content

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
https://forums.kleientertainment.com/forums/topic/107317-help-with-propagator/
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...