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. 

Random float breaks function

Hello!

So i have these two blueprints, one where the bullet created moves directly towards the cursor, and a second one where the bullet direction should be a bit more random. I have tried to achieve the random direction by breaking the rotation, adding a random number to the x, y and z axis. However, this has stopped the bullets from spawning. So my question is if there is anything in my blueprint that is faulty?

Note: This is a top-down game, if that effects anything.

Image 1: This one doesn't work

Image 2: This Works

alt text

alt text

Product Version: Not Selected
Tags:
with random.png (209.9 kB)
workin.png (104.1 kB)
more ▼

asked Apr 11 '15 at 06:21 PM in Blueprint Scripting

avatar image

TheSwarre
10 2 3 9

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

1 answer: sort voted first

I see that your scale is set to 0, 0, 0 in both of your blueprints - could you try setting it to 1, 1, 1 instead? They may be spawning so small that they're invisible.

Apart from that, the only thing I can think of is that they are spawning, but are flying off in a random direction before you can see them. It's a long shot, but video games can be strange sometimes :P

Finally, try dragging off of the return pin of the spawn actor node and checking it - you should be able to see if your projectile exists and where it is there.

more ▼

answered Apr 11 '15 at 06:27 PM

avatar image

Jargon
808 39 30 65

(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