Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > CopperCube > Help with CopperCube
Weapon change system
Author Text

Des
Guest
Quote
2022-07-09 14:21:51

Guys please help, how can I create character with different weapons and change from one to another note in a 3rd person shooter game


Guest
Guest
Quote
2022-07-09 17:28:29

There's half a dozen different ways to go about what you are asking. The easiest is to put all the weapons in the hand of your model and then hide/unhide them as a needed. So the player presses 1 and it unhides the knife, 2 hides the knife and unhides the pistol, etc... Of course you need to set variables when the weapon is picked up to allow the player to unhide the weapon in the first place.

Hope this helps steer you in the right direction.


andgameplay
Registered User
Quote
2022-07-10 03:09:10

Hi, the last comment above explain very well!

You need to use variables, and add all weapons in the player, and hide all the weapons

You need associated each variable to a different weapon, and use each key button to activate each weapon

When you press a key, it must activate the variable, thats will unhide each weapon.


alcentauri
Registered User
Quote
2022-07-10 14:38:52

:V


Des
Guest
Quote
2022-07-10 19:10:44

What about implementing different animations each weapon


Guest
Guest
Quote
2022-07-11 15:49:42

You set the animation depending on certain variables. Let's say the player clicks on a knife in the scene. The knife is then hidden and the variable knife is set to true. If the player presses 1 and the variable knife is true, then it will play the knife wield animation and set the variable knife_ready to true. Then on your attack button, you would ask if knife_ready is true and if so, you would play the knife attack animation. CC has an inbuilt action for changing animations. It's all a matter of setting up variables and if/else conditions to let the game know which one to play. You can do pretty much anything that way, but I would suggest learning JavaScript because it's less tedious than all those behaviors and actions.


Des
Guest
Quote
2022-07-12 17:24:02

Thanks but please can you offer a ccb file to clarify this, I beg your pardon


michaellimpre
Registered User
Quote
2022-07-13 14:20:18

All good websites start with a blueprint. Developers call this a wireframe. It doesn’t have to be an official document; it’s simply a vision for your site that’ll give both you and your developer(s) direction and a place to start. You can draw it on a whiteboard or use a tool like Invision, Slickplan, or Mindnode https://mlsdev.com/services/it-s...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (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© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact