Vector Length Limitations
Hey guys, quick question;
I have a character in game that when I press the left mouse button, it spawns a 'ghost' of something. Now I want that ghost's location to be limited to a certain distance from my character (this will stop that ghost from going everywhere around my map).
Is there a good way on doing this?
From what I heard, 'Vector Length' would be the best way to go, but even then, I'm not sure on how to approach this. Assuming everything else is set up, and all that is needed is the ghost location limits, how will I go about doing this?
From how my logic works (which it doesn't), i would assume: - I need to obtain the character world location - Then get the 'ghost' actors location ('Get Actor Location') - I would then have to find a point in between these two (close to the character) - Then if the 'Ghost' is out of these limits, than set its location to that limit (some how)
Hopefully this makes sense to you all, if not, please tell me what I need to elaborate this issue.
asked Apr 27 '15 at 11:51 AM in Blueprint Scripting
Worked it out:
Just using a set component to set its location :) Because the character always facing the mouse anyway.
answered Apr 29 '15 at 11:14 AM
Someone will clean this up or correct a bit, but something closer to this? Off false you would stop simple move to and run your usual movement.
answered Apr 27 '15 at 12:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here