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. 

SpawnActor Spawning to Origin instead of Transform in Multiplayer

Hello,

I'm in the process of developing a multiplayer paper2d platformer/shooter. I'm currently trying to put together the event for spawning shots and am running into strange behavior with the spawn actor transform. I would appreciate any help that could be provided.

Intended Design The shot will be spawned where arrow component "ShotDirection" in the character blueprint is located and pointing. I will then adjust the location of said component to control where the shots exit from the character and the direction (ie: lower the arrow when crouched)

Current Occurrence When the "SpawnShot" event is called the shot is instead spawned at the map origin 0,0,0.

Please see attached screenshot for my test code.alt text

Product Version: UE 4.9
Tags:
more ▼

asked Oct 14 '15 at 02:46 AM in Blueprint Scripting

avatar image

Xeroize494
6 1 2 4

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

2 answers: sort voted first

Yes, I actually did solve this.

I found out that the spawned actors were colliding with the blank space of tilemaps and since the tilemap was centered on origin it resulted in the object being pushed to 0,0,0. Adjusting the collision properties of the tilemap resulted in the spawned actors functioning properly. I discovered this on accident by changing the collision properties of the spawned actor to not collide with anything.

more ▼

answered Mar 01 '17 at 06:31 PM

avatar image

Xeroize494
6 1 2 4

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

I ended up dropping this project for a while due to frustration and have come back to still being unable to solve this.

For the sake of testing, I removed the multiplayer elements and still am unable to spawn actors to anywhere but origin (0,0,0). I connected the transform to a print string and it reports out valid transform numbers but the actor still keeps spawning at origin. Any ideas?

Also, I tried just generating a transform from hard coded numbers (using make transform) to rule out the creation of the transform and once again, nothing but origin.

more ▼

answered Jan 17 '17 at 01:02 AM

avatar image

Xeroize494
6 1 2 4

avatar image MikeRPG Mar 01 '17 at 04:30 PM

You ever figure this out? I'm getting the exact same damned annoying problem

avatar image Xeroize494 Mar 01 '17 at 07:36 PM

Yes, I actually did solve this.

I found out that the spawned actors were colliding with the blank space of tilemaps and since the tilemap was centered on origin it resulted in the object being pushed to 0,0,0. Adjusting the collision properties of the tilemap resulted in the spawned actors functioning properly. I discovered this on accident by changing the collision properties of the spawned actor to not collide with anything.

(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