Starofdeath Posted January 7, 2016 Share Posted January 7, 2016 like spear or bat?inst.components.equippable.boatspeedmult = 1.5 -- not work may be through GLOBAL.TUNING.CLOTH_SAIL_SPEED_MULTbut how? Link to comment https://forums.kleientertainment.com/forums/topic/62020-how-to-do-ability-to-increase-speed-of-boats-for-equippable-item/ Share on other sites More sharing options...
Mobbstar Posted January 7, 2016 Share Posted January 7, 2016 You want to increase a boat speed while holding the item? I don't have the DLC, but my guess is you need to add onto the equip and unequip functions of the item, so it checks whether the player is on a boat at the time of equipping, as well as event listeners that change the boat speed if the player gets on after equipping. Link to comment https://forums.kleientertainment.com/forums/topic/62020-how-to-do-ability-to-increase-speed-of-boats-for-equippable-item/#findComment-706287 Share on other sites More sharing options...
Starofdeath Posted January 8, 2016 Author Share Posted January 8, 2016 Mobbstar, I will explain a little. As i understand (via several experiments) inst.components.equippable.boatspeedmult connected with slot of boats and works only for boats (and not for person). Link to comment https://forums.kleientertainment.com/forums/topic/62020-how-to-do-ability-to-increase-speed-of-boats-for-equippable-item/#findComment-706625 Share on other sites More sharing options...
Starofdeath Posted January 8, 2016 Author Share Posted January 8, 2016 I have an idea. Sea Umbrella - umbrella, which works like additional sail, when character holds it in his arm.For this reason, will be better that umbrella gives bonus for sails. But (we're back to where we started) i don't know how to do this. Link to comment https://forums.kleientertainment.com/forums/topic/62020-how-to-do-ability-to-increase-speed-of-boats-for-equippable-item/#findComment-706629 Share on other sites More sharing options...
MikuHatsune Posted January 8, 2016 Share Posted January 8, 2016 According to Mobbstar's post, you need to think about how you can check the fact that your umbrella equiped or not. This post may help you. Then, if the character with umbrella is onboat, change boat sail speed. The DLC came to steam recently, so I cant give you some posts with the solution yet. But I think there are some events or player statuses for boats. Link to comment https://forums.kleientertainment.com/forums/topic/62020-how-to-do-ability-to-increase-speed-of-boats-for-equippable-item/#findComment-706656 Share on other sites More sharing options...
Starofdeath Posted January 8, 2016 Author Share Posted January 8, 2016 Thanks for answer. But how to use this function in modmain.lua :GetEquippedItem(GLOBAL.EQUIPSLOTS.HANDSIf somebody knows, please write example. Link to comment https://forums.kleientertainment.com/forums/topic/62020-how-to-do-ability-to-increase-speed-of-boats-for-equippable-item/#findComment-706688 Share on other sites More sharing options...
Starofdeath Posted January 10, 2016 Author Share Posted January 10, 2016 Done. See mod, if interesting how it works:Seabrella Link to comment https://forums.kleientertainment.com/forums/topic/62020-how-to-do-ability-to-increase-speed-of-boats-for-equippable-item/#findComment-707612 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now