|
Hi, I have a character in 3rd person perspective. It shoots fireballs straight ahead of it at all times. I would like to make it so that the aim box I am using moves in relation to where the cursor is on screen. For example, if I have the cursor in the centre, which i have indicated by a red dot as a GUI texture, then it shoots straight. If I move the cursor up, the aimbox moves up, causing it to fire upwards. The aim box, therefore, must be able to move with the character too. I was thinking of having it mapped to a plane located in front of the character, but I have no idea how to do it. And as a note, I prefer using JavaScript. Thanks in advance.
(comments are locked)
|
