Results 1 to 4 of 4
  1. #1
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Location
    California
    Posts
    87

    Default Drawing crosshair based on mouse position

    I'm learning Unrealscript and UE's API but having some troubles along the way.. is the crosshair being drawn through the PlayerController or via HUD or UI? My project extends off of UTDeathmatch and has a custom player controller establishing a third person camera view. How would I go about drawing the cursor according to mouse positions, does this require creating a new function?

  2. #2
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Location
    Uk, south England
    Posts
    75

    Default

    I posted this in another thread, I will not give you the code to copy and paste its better if you learn it, I will help you though.

    To draw the cursor on screen:

    First you need to create a function that will grab the mouse cursor position.

    Try "UIRoot GetCursorPosition". For the current cursor position.

    Then you will need a mouse cursor texture and plot this on the canvas.

    Then you need to update the HUD.

    I have a fully working and very clean mouse cursor function that I use.

  3. #3
    MSgt. Shooter Person
    Join Date
    Nov 2009
    Location
    California
    Posts
    87

    Default

    Thanks for the tips I'll be trying these out later today

  4. #4
    MSgt. Shooter Person
    Join Date
    Nov 2008
    Location
    Norway
    Posts
    100
    Gamer IDs

    Gamertag: NA

    Default

    Any luck getting it done?
    ..the final stage of the life cycle


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.