Modding Discussion Need a bit of help with Lua

Discussion in 'Starbound Modding' started by Flurry33, Dec 19, 2013.

  1. Flurry33

    Flurry33 Scruffy Nerf-Herder

    So I am trying to make an animation(frames) on the object play when you hit the craft or smelt button. One problem, I dont know how to program with lua(only a small basic idea) so I was hoping someone could help.


    I took this from the beacon files
    but it is simmilar to what I need

    function onInteraction(args)
    (NOTE: I don't want it on interaction(assuming that's when you hit e on the obj)
    if not (no Idea what to put here) () then
    object.setAnimationState("beaconState", "idle")
    else
    object.setAnimationState("beaconState", "active")
    end
    end


    (no Idea what this stuff is)
    function hasCapability(capability)
    return false
    end
     

Share This Page