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"

Spawn Location not within box extent?

So I am having this weird bug that doesn't make any sense. I have this track with multiple trigger boxes throughout. I have portals that are supposed to spawn in each of these trigger boxes. However, It seems that the portals spawn in the center where they want, and NOT in the boxes they are blueprinted to. Does anyone know why this happens?alt text

Product Version: UE 4.20
screenshot-372.png (757.8 kB)
more ▼

asked Dec 03 '18 at 02:18 AM in Blueprint Scripting

avatar image

11 3 6

avatar image ThompsonN13 Dec 03 '18 at 02:30 AM

i would say that your getting a point relative to the bounding box but placing the new portal based on the relative position of the main actor. you could try adding the location produced by the random point in bounding box node to the location of the portal spawn component, that should provide the offset needed.

avatar image xGameSlave Dec 03 '18 at 03:09 AM

alt text

Like this? It didn't really fix the issue. It's now stuck in one spot off center.

screenshot-375.png (229.2 kB)
avatar image xGameSlave Dec 03 '18 at 03:22 AM

Well I think I figured it out. I had to unparent the spawners from TrackMid. Then I had to reduce the boxes to scale 1 (it was set to ten because the whole track was scaled) and adjusted the box extent and I think that may have fixed it.

avatar image ThompsonN13 Dec 03 '18 at 03:25 AM

i actually meant add the spawners relative location, but in any event even what you have should have done something.

what do your portals do? it may be better to spawn them as their own actor instead of a child component.

avatar image xGameSlave Dec 03 '18 at 03:31 AM

They Teleport the player 5,000,000 UU up and 5,000,000 UU down. The portals transport you to different worlds with the same track.

avatar image xGameSlave Dec 03 '18 at 11:37 PM

Ok spawning its own actor fixed the problem, thanks. I just have one last issue. The portals, which teleport the user up or down to different tracks as shown below, have an issue where the teleport will move the camera to the track but the pawn will be destroyed. alt text

screenshot-378.png (405.6 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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