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. 

Casting to an actor variable

Hi

I'm trying to make a puzzle game with basic mechanics such as buttons, levers, etc. So i'm trying to make a door blueprint in which i can choose to which mechanic it casts to by making a blueprint in which i can choose the type of actor it spawns and then the door casts to it trough a reference variable. The problem is that i need to know whether or not the actor is active (like if the button is pressed) so i'm trying to figure out a way for the blueprint were i choose the mechanic to cast to the actor variable.

Sorry if it sounds a bit confusing, here is a visual interpretation alt text

I already have most of it set up i'm just curious on how to cast to the actor blueprint in the mechanic blueprint. Thank you.

Product Version: UE 4.13
Tags:
vis.png (23.1 kB)
more ▼

asked Mar 13 '17 at 07:30 PM in Blueprint Scripting

avatar image

kaosrio
58 4 6 14

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

1 answer: sort voted first

Ok, i managed to fix it. Instead of trying to let the mechanics blueprint cast to the actors i did it in reverse and let the actors play a custom event in the mechanics blueprint which door casts to.

more ▼

answered Mar 14 '17 at 01:34 PM

avatar image

kaosrio
58 4 6 14

(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