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"

Trigger Box spawning in a loop. How to get location of a specific Trigger Box?

Hey guys, I created a trigger box blueprint class and I spawned several Trigger boxes on my map (via a loop and Spawn Actor). Now that I have only one blueprint class, I want to know exactly to which trigger box I'm talking because every Trigger Box has it's own logic. How to find out which trigger box am I "talking to"? How can I get the location of a trigger box (that would be a possibility) or is there an even easier way to find out?

Cheers!

Product Version: Not Selected
Tags:
more ▼

asked Jul 27 '17 at 12:04 AM in Blueprint Scripting

avatar image

ocamR
10 1 2 3

avatar image Q-tro Jul 28 '17 at 08:51 AM

First thing that comes to mind: assign an integer "ID" to every TriggerBox on Spawn. You can now get the ID from every TriggerBox and know exactly which instance of the BP you are working with.

avatar image ocamR Jul 28 '17 at 11:11 AM

Hi Q-tro, this is a good suggestion! I've already solved this problem yesterday but your suggestion sounds good! Sorry if I bothered your time!

Cheers!

avatar image script526 Dec 28 '18 at 02:05 PM

Also you can pass these integers into an array and iterate through them using ForEachLoop node.

(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