Sign in to follow this  
GodIess

Need help creating a rework at Wickerbottom

Recommended Posts

GodIess    237

Recently I decided to make a rework, the main change of which will be the ability to take the book in hand and choose the area of the spell.

but faced a problem, other players cannot see this circle. That is, the host can easily press the right button and choose where to apply the spell, while other players apply the spell where the button was pressed without the right to choose. I've used the available "aoetargeting" and it works great in solo play.

        inst:AddComponent("aoetargeting")
        inst.components.aoetargeting.reticule.reticuleprefab = def.reticule
        inst.components.aoetargeting.reticule.pingprefab = def.reticule.."ping"
        inst.components.aoetargeting.reticule.targetfn = ReticuleTargetFn
        inst.components.aoetargeting.reticule.validcolour = { 1, .75, 0, 1 }
        inst.components.aoetargeting.reticule.invalidcolour = { .5, 0, 0, 1 }
        inst.components.aoetargeting.reticule.ease = true
        inst.components.aoetargeting.reticule.mouseenabled = true

image.thumb.png.7cedd66fb63cdc20d5af385838f5b97f.png

Edited by Maksym.12

Share this post


Link to post
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
Sign in to follow this