Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi there ! I'm building a fps game but I do not know How to add gun to hotkey (numpad1 ,2,3....etc) like Counterstrike ? ?. And how to make mele attack dame !! -- sorry my bad ENG --- |
||||
|
When key pressed show / hide gun is the easiest way |
||||
|
if you do that when y press Lefmouse shooting and attack both !! ?? |
||||
|
Not necessarily, if the action to shoot is on the gun itself then hiding the gun is sufficient. If the action is on the character node (or any other node) then it will still shoot. In this case, you will need to make a variable "GunType" or something to represent which gun is active, and when shoot key is pressed check what value is "GunType" and do the shoot action for each value. |
||||
|
wrote: Not necessarily, if the action to shoot is on the gun itself then hiding the gun is sufficient. If the action is on the character node (or any other node) then it will still shoot. In this case, you will need to make a variable "GunType" or something to represent which gun is active, and when shoot key is pressed check what value is "GunType" and do the shoot action for each value. Send to me a tutorial file .ccp to: thanhtoanhlu@gmail.com. Thanks !! |
||||
|
On MTM there is a shooter template with gravity etc under resources page... download it for examples of weaopon switching |
||||
|
I need a project please give me a link |
|