GodIess Posted December 19, 2021 Share Posted December 19, 2021 (edited) 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 Edited December 20, 2021 by Maksym.12 Link to comment 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