Modding Help Force Activate Teraformer with script

Discussion in 'Starbound Modding' started by Noah Nebula, Oct 30, 2018.

  1. Noah Nebula

    Noah Nebula Sandwich Man

    I want to activate this teraforrmer when the player gets close to it.

    I a starting script here;

    function update(dt)

    local radius = config.getParameter("activeRadius", 5)
    local options = { includedTypes = {"player"} }
    local position = object.position()
    local players = world.entityQuery(position, radius, options)

    if players[1] then
    self.active = true

    end

    end


    But I notice that the "self.active = true" will not work because there is no value called "active" that turns the TF on.
    So what do I have set to true to make it work?
     

Share This Page