Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
How to add gun to hotkey

thantoan
Registered User
Quote
2017-08-30 15:57:56

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 ---


Zoo
Guest
Quote
2017-08-30 16:16:59

When key pressed show / hide gun is the easiest way


thantoan
Registered User
Quote
2017-08-30 17:13:37

if you do that when y press Lefmouse shooting and attack both !! ??


ishmaru
Registered User
Quote
2017-08-30 21:46:42

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.


thantoan
Registered User
Quote
2017-08-31 03:27:03

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 !!


Zoo
Guest
Quote
2017-08-31 08:38:11

On MTM there is a shooter template with gravity etc under resources page...

download it for examples of weaopon switching


thantoan
Registered User
Quote
2017-09-01 08:39:54

I need a project please give me a link


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact