UE3 - UDK Free the crosshair!

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Broberg

New Member
Sep 1, 2010
1
0
0
Hi!

If I were to set the crosshair free, how would I do that?

IE : I Don't want the mouse to control the view. like in a Rail-shooter ala Virtua Cop

Is that possible on a scripting level?
 

farshad12

New Member
May 7, 2010
4
0
0
It's easy but you need some scripting experiences.

I didi it in my last game. Very first thing you need to do is override UpdateViewTarget function in your camera class, so mouse does not longer control camera POV. Then you have two choices. The hard way but the way comes in mind first, is using Canvas.DrawTexture to bring a cursor in mouse position every tick.

The easy way which I used in my game is creating a GFx hud that have a cursor, this way you can update it's position either via unreal script or action script.

Good luck. :)
 
Last edited: