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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How To Make The FPS Weapon Shoot Like Auto Mode in C++

**Hello xD , Hope Your XMAS Was Great. So im with this one problem i thought it would be ez but it dosent looks like it now xD, So in the fps project default unreal has provided us you have the crosshair wrong( i dont know why(its not centered)) and the weapon only shoots at semi(when you press it shoots a projectile at once) what im here today begging guys is a tip/help on how to make a full auto system to shote automatic(shoot nonstop when pressed) i try but i dont seem to get it right well hope you can xD

Bye Thx For Reading and have a nice week xD

PS: SORRY FOR MY ENGLISH IT SUCKS **

Product Version: UE 4.14
Tags:
more ▼

asked Dec 28 '16 at 09:18 PM in C++ Programming

avatar image

Roberte5466
3 2 6 7

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

1 answer: sort voted first

Hey Roberte5466-

Looking at the code for the default first person template, the firing of the projectile is controlled with the OnFire function inside Character.cpp. The easiest solution would be to set a timer when "fire" is pressed to call OnFire and then reset the timer when released "fire" is released.

Cheers

Doug Wilson

more ▼

answered Dec 29 '16 at 06:36 PM

avatar image Roberte5466 Dec 30 '16 at 04:42 PM

i cant find the class in C++

avatar image Doug E ♦♦ STAFF Dec 30 '16 at 05:18 PM

If you create a new code based First Person Template project, you can open the project's solution file (.sln). In the project hierarchy, you should find [ProjectName]Character.cpp

(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