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"

Flying Vehicle Turret Controls

I am having an odd issue. I have used a similar blueprint to control an AI turret mounted on a fighter jet. I changed it a little to allow player input. It does nothing and I really don't know what to do. I will be attaching screenshots of the blueprints. With this setup, it was always aiming at the spawn point.

Controller Input to Call Aim Function Aim Turret Function

Product Version: UE 4.17
Tags:
2017-10-07-22.png (319.1 kB)
2017-10-07-23.png (323.2 kB)
more ▼

asked Oct 08 '17 at 01:38 AM in Blueprint Scripting

avatar image

Placid_Storm
13 1 4

avatar image Placid_Storm Oct 08 '17 at 01:57 AM

This made the Turret spin like crazy. Not sure if it helps but I am adding a screen shot of where the turret is located. Looking at it like this makes me want to smooth the turret out a bit. alt text Change to Control Input

2017-10-07-25.png (746.6 kB)
2017-10-07-24.png (371.8 kB)
avatar image Placid_Storm Oct 08 '17 at 02:24 AM

This did something. It is acting all funny though. I want it to target a point in front of me. The Turret speed is 0.5f. I think it needs to go down more. I may even reverse the aim up control. It just feels weird aiming this turret down to fire up.

alt text alt text

2017-10-07-26.png (355.0 kB)
2017-10-07-27.png (351.3 kB)
avatar image Placid_Storm Oct 08 '17 at 05:40 PM

I'm going back to another project in hopes that someone will be able to figure this out. I have been able to attach a functional turret as a child object that will act as an AI but it has collision issues. I've been working on this issue for like 12 hours now. If anyone has any information, I'd be glad to hear it. I've looked at other projects and examples but they all seem to point to skeletal meshes and animation. I could do that but I know there has to be another option.

avatar image Placid_Storm Oct 09 '17 at 01:25 PM

Such a Noob. I forgot to hook in delta. Gotta scale down the speed and the controls appear to be reversed. Gotta fix that and I'll let y'all know something. This may help someone else because it was a pain in the butt.

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

1 answer: sort voted first

Just in case anyone finds this useful. I was overcomplicating things quite a lot. I will probably need to revise this a bit to limit the rotation of the turret but this feels a lot like what I was looking for. I just need to keep it from firing into the air craft but this step is at least finished. I really hope someone can use it. I highlighted the TurretControlSpeed to show the value I went with. If anyone has any input on how to place a cursor on screen I'd be glad to hear it.

Turret Controls

2017-10-09.png (393.9 kB)
more ▼

answered Oct 09 '17 at 02:37 PM

avatar image

Placid_Storm
13 1 4

(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