Jump to content

Recommended Posts

I'm trying to make a character that is able to ride beefalo without needing a saddle. She would have the same speed as the basic saddle. One way I can think to do this is to change the states of local beefalo to 'saddled,' but I don't know how to local local creatures. This would also add the side effect of other players being able to mount the beefalo as well. Anyone have an idea for this?

1 hour ago, FlamingTribble said:

I'm trying to make a character that is able to ride beefalo without needing a saddle. She would have the same speed as the basic saddle. One way I can think to do this is to change the states of local beefalo to 'saddled,' but I don't know how to local local creatures. This would also add the side effect of other players being able to mount the beefalo as well. Anyone have an idea for this?

rideable = function(inst, doer, actions, right)
            if right and inst:HasTag("rideable") and 
               (not inst:HasTag("dogrider_only") or 
               (inst:HasTag("dogrider_only") and doer:HasTag("dogrider"))) then
                
                local rider = doer.replica.rider
                if rider ~= nil and not rider:IsRiding() then
                    table.insert(actions, ACTIONS.MOUNT)
                end
            end
        end,

I believe you'll need to add on to this component action, currently Beefalos are only rideable if they have the rideable tag, aka have a saddle. What you can try doing is, giving your character a special tag, and if the player has that tag they'll be able to mount the beefalo whether or not the beefalo has a saddle. I'm sure there's more you need to do but this is a start.

2 hours ago, gaymime said:

that is what was done officially with wes and the oar

What do you mean? Wes looks the same as any other character when rowing with an oar.

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...