HeroEngine Forums

HeroEngine Support => Scripting & Programming => Topic started by: st34lthest on Mar 09, 12, 11:08:53 PM

Title: [Resolved] Need Help With 3rd person hack and slash camera
Post by: st34lthest on Mar 09, 12, 11:08:53 PM
Hi,
im abit stuck on my game camera system,
im just wondering on how to make a fixed camera,
and which moving the mouse left and right turns the character,
kinda like gears of war,
and also how to make the left mouse button become the melee attack
i just need a tutorial, or someone to point me in the direction to find out how

ive tried finding 3rd person camera Tutorials, but no luck

I'd Appreciate any help possible!
Title: Re: Need Help With 3rd person hack and slash camera and combat system!
Post by: DarkOMEN on Mar 10, 12, 04:53:32 AM
Hi,
im abit stuck on my game camera system,
im just wondering on how to make a fixed camera,
and which moving the mouse left and right turns the character,
kinda like gears of war,
and also how to make the left mouse button become the melee attack
i just need a tutorial, or someone to point me in the direction to find out how

ive tried finding 3rd person camera Tutorials, but no luck

I'd Appreciate any help possible!
I recommend following this tutorial, as it does a lot of what you're asking for. Just use a different offset for the camera to move the point of view to behind the shoulder instead of at eye level, and do not turn off rendering of the character.

http://hewiki.heroengine.com/wiki/First_Person_Camera_Tutorial

In E_ACCControllerClassMethods, there should be a section of code that references turning the character when the camera has settled.  I'm willing to bet you can simplify that bit to get the turning control that you want.  I'd be more specific, but I'm not at home to look it up for you.  Hope that helps!
Title: Re: Need Help With 3rd person hack and slash camera and combat system!
Post by: st34lthest on Mar 10, 12, 07:06:38 AM
no idea how i missed that tutorial on the wiki,
but thank you very much,
its helped me alot, i appreciate it!  :D

now i just need to know how to change the left mouse button into the melee button :)

Title: Re: Need Help With 3rd person hack and slash camera and combat system!
Post by: st34lthest on Mar 11, 12, 01:24:05 AM
does anyone know which script would control something that can make the left click become a melee attack?
thanks in advance
Title: Re: Need Help With 3rd person hack and slash camera and combat system!
Post by: HE-Cooper on Mar 11, 12, 05:04:35 AM
Not knowing how youve implemented your combat, I can't speak to the ability or animation side, but you would simply change the gamekeybindings.ini file to make LMB be whatever you like. Or add a command layer, etc. the keybindings wiki entry has more specifics.