PDA

View Full Version : Setting the target for the player?



Vincentez
11-10-2009, 03:05 PM
I'm working on a mod with my friend and it requires a 3rd person camera. however, we're not planning to use a visible crosshair in the mod, so I need to know how to get the player's character to shoot straight forward instead of shooting at the point where the crosshair would be.

Can anyone help me?

I'd appreciate it if someone could explain how to do this in unreal script,
but a way to do it through kismet would be a lot better :)

fritzmonkey
11-10-2009, 03:16 PM
This will have to be done through script.

If I remember correctly you should look at GetPhysicalFireStartLoc() in UTWeapon.

Vincentez
11-10-2009, 03:42 PM
ok, thanks...
I wouldn't mind getting an explanation of what I should alter there, since I'm really not so much of a coder myself :)
Anyway, I'm looking at it right now... any help would still be appreciated :P

fritzmonkey
11-10-2009, 04:55 PM
I don't have the code in front of my, so I'm doing this from memory. I'll probably be off on a few things. I believe that the fire direction is decided by the direction that the player is looking. If you change that to use the players rotation it should work.

Vincentez
11-10-2009, 05:15 PM
can you tell me the command for doing that?
honestly, I'm using notepad here to edit the script files, so I have no way of knowing when I do something wrong before I try to build it :/ no syntax highlighting, and even with that, I still wouldn't understand a thing about the code... :S