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"

How can I start the game with a trigger box without collision?

Hello! Perhaps, I am missing something simple and obvious, but I can not find a solution. How can I spawn trigger box with disabled collision at the start of the game and then enable it via SetActorEnableCollision in the Blueprint? I understand how to spawn TriggerBox WITH a collision and then toggle collision via Blueprint, but reverse task is difficult for me. I've tried to spawn TriggerBox with collision, pinned window of collision properties of the TriggerBox on the screen and searched for any changing in the configuration when was toggling collision via Blueprint. But I did not find any property that was changed in the inspector, although in fact collision was toggled. And so, I do not understand which property of TriggerBox in the inspector rules the initial collision of the actor for further toggling.

Product Version: UE 4.16
more ▼

asked Jul 28 '17 at 02:03 PM in Blueprint Scripting

avatar image

1 2 4

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

1 answer: sort voted first

Under the TriggBox settings, Collision Preset, set value to Custom, and set Collision Enabled to No Collision.

more ▼

answered Jul 28 '17 at 02:09 PM

avatar image

2.2k 39 17 52

avatar image Azat Jul 28 '17 at 03:14 PM

BenVlodgi, thank you for your answer! Unfortunately, this did not help. Perhaps it depends on the version of the engine. I am using 4.16. Luckily, I found a solution! There is EventBeginPlay node in the Blueprint, I used it. So I left my TriggerBox with enabled collision by default, but on the start of the game it becomes disabled.

avatar image BenVlodgi Jul 28 '17 at 03:32 PM

Setting the Collision Enabled should work in all versions, but yes you can also set the property OnBegin Play. You could also simply branch off of a boolean that you have initially as false in the OnHit, and when you want things to track, set it to true.

(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