x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Gun Fire Issue

I'm having a lot of problems with my equip and holstered weapons. I managed to create a weapon swapping system using integers so when the player presses "E" the next weapon shows up. The current weapon will appear in the players hands while the next weapon will be displayed on their backs.

This is where all the issues come in...

I have 4 weapons (White, Red, Blue, Yellow) that all share the same fire button "Left mouse Button". So when I press LMB all the weapons fire at once...HOW CAN I STOP THIS???

Product Version: UE 4.11
Tags:
more ▼

asked Nov 05 '16 at 05:50 AM in Using UE4

avatar image

Rahab
1 1 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Seems like a simple programming issue. You need to tell the game that the weapon is not active programmatically. Going on a hunch, use simple boolean conditions to tell the game which weapon to fire and which not to fire.

more ▼

answered Nov 05 '16 at 06:13 AM

avatar image

SHOBBIT
650 13 13 27

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I found a solution. I used the integer node from the equip function into my fire function. Right after the “Input Action Fire” I place the “Switch on Int” then my “Click Number” variable. I ended everything with the different fire functions.

more ▼

answered Nov 08 '16 at 08:23 AM

avatar image

Rahab
1 1 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question