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"

Moving a non player pawn

What's the proper way to move a pawn that won't be controlled by the player, but has specific behavior so there isn't really a need for AI?

I need to do simple wheeled and hover vehicles, and I would like to do basic physics on them as well. The players won't be controlling them so I'm not sure if I should use a player controller, but there's also no need for pathfinding or other AI behavior, so I don't think an AI controller would be better.

I just need scripted events to say increase the throttle or change the steering direction for the wheeled vehicle, or apply a thrust input for the hover vehicle. Should I use a controller at all? Is there a way to directly set up and control a vehicle with simple physics?

Product Version: UE 4.10
Tags:
more ▼

asked Jan 06 '16 at 03:36 AM in Blueprint Scripting

avatar image

USMC1812
26 5 12 10

avatar image eduardomoraes8 Nov 24 '18 at 11:21 PM

"I need to do simple wheeled and hover vehicles" basing on that phrase you may use the wheeled vehicle movement component or the floating pawn movement, you could add input to them based on a timeline. But based on the other part of your comment you just need a scripted sequence, it's no really clear what you want to achieve with these so it's hard to help, though maybe use sequencer?

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

1 answer: sort voted first

Insted of PlayerController and AIController simply create your own Controller class, if you want to do simple controlling without advance AI this should be good enouth

more ▼

answered Jan 06 '16 at 04:21 AM

avatar image

Shadowriver
37.8k 937 172 1123

avatar image USMC1812 Jan 06 '16 at 04:28 AM

Is it possible to extend the controller class in blueprints? I can only have player controller and AI controller as parents.

avatar image Shadowriver Jan 06 '16 at 05:03 AM

Ah you right it nonblueprintable :(

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AController/index.html

Then you have no chose either use AIController or put control code in pawn itself, you can also make a own actor that controls pawn, dpending on what you really want to do. You can also make C++ class controller that will be blueprintable

avatar image USMC1812 Jan 06 '16 at 05:27 AM

Dang that's what I thought... Well, I've been looking into using the character class for my vehicles. I'm hoping that I can implement at least some of the functionality from it, I really don't want to do all of the movement math and physics (even if it is simple) in blueprinting...

(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