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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Is +=, -=, *=, /= etc. possible in Blueprints?

How can I perform Compact Operations on Variables in Blueprint?

I want to alter my variables a few times before a single operation is performed, so how can I do compact statement in blueprint? Is it as simple as getting the Variable the setting it again?

Product Version: Not Selected
Tags:
more ▼

asked Jun 22 '14 at 08:08 PM in Blueprint Scripting

avatar image

TheJamsh
815 57 96 140

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

3 answers: sort voted first

Since I catch myself using such operations a lot and hating the time wasted everytime I have to use the "Branch" node, I've recreated these operators (and some more) in the form of a Plugin which you can find here:

https://github.com/BrUnOXaVIeRLeiTE/UE4BPExtensions

The nodes I've added have branching built-in when needed and removes the necessity to output a boolean value to link to a Branch node all the time when simply checking something, pretty much like the "IsValid?" node. Just copy the "BxBLExtensions" folder into the Plugins folder of your project, restart the editor and nodes will be there.

more ▼

answered Feb 17 '15 at 09:03 AM

avatar image

BrUnO XaVIeR
996 31 17 36

avatar image TheJamsh Feb 23 '15 at 11:01 PM

Damn... nice one Bruno! Bit of a necro :p

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

No by default, you would need to code such nodes yourself in C++ (dont panic its quite easy, you just add something to funtion to convert it to blueprint node) but im not sure if blueprint system and UHT support primitive type varable pointers in order to set blueprint varable just by inputing it.

more ▼

answered Jun 22 '14 at 08:51 PM

avatar image

Shadowriver
35.7k 926 168 1104

avatar image TheJamsh Jun 22 '14 at 10:11 PM

Hmm seems you're right, I can't make multiple changes to a variable before something is done with it.

Kind of sucks really, I can't get the current state of a variable and add to it. Does that mean I'm going to have to create multiple variables, which are all 'older' versions of one another, and do it that way?

Going to take forever :(

avatar image Shadowriver Jun 23 '14 at 12:53 AM

Well look like theres blueprint solution, see below

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

Seeing that your formula correct using the "math expression node" to type custom math code will make it easyer.

more ▼

answered Jul 31 '14 at 04:43 AM

avatar image

Zomak
16

(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