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"

Change variable default while debugging?

While the game is running, is it possible to (i) change the default value of a blueprint variable (ii) change the value of a variable on an object ?

Example 1: Blueprint BP_Enemy has int variable Health with default value 100. While playing I realise the spawned enemies are too easy to kill, so I want to increase the default health value to 200. Is this possible?

Example 2: I pause the game and want to give a single instance of an enemy 1000 health.

I realise I can work around these cases by implementing special custom logic, but I would like to be able to achieve the same result in a general way using the debugger. Ideal solution would be:

Solution 1: Hit pause. Open BP_Enemy. Select Health variable. Change Default Value to 200. Hit Compile. Hit play.

Solution 2: Pause game. Select enemy in viewport. Modify Health value in Details to 1000.

I hope I'm just missing an option!

Thanks

Product Version: Not Selected
Tags:
more ▼

asked May 13 '15 at 09:30 AM in Blueprint Scripting

avatar image

HowardPrice
91 2 2 5

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

1 answer: sort voted first

Example 1: Blueprint BP_Enemy has int variable Health with default value 100. While playing I realise the spawned enemies are too easy to kill, so I want to increase the default health value to 200. Is this possible?

Yes, you could open a Widget with a Input Box and change the Variable. If you have many, you might store them in an Array so it is easy to reference them all.

Example 2: I pause the game and want to give a single instance of an enemy 1000 health.

Same as Above, You would just reference the one BOT and should should be fine.

Your 2 solutions you posted would work fine in both cases. Just do it with a Widget.

Narg

more ▼

answered May 13 '15 at 09:58 AM

avatar image

Narghile
1.7k 74 38 110

(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