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"

How to make AI damage player?

Hi! I'm almost done here, now I only need to make my AI damage my actor when it's close to MyCharacter.. I've got some help from someone before but his blueprint doesnt work for me.. I've HP systems for both my AI and my player.

I'll add some screens to show my blueprints.

http://i.imgur.com/02rkYFN.png

http://i.imgur.com/IPSIMfg.png

Please help! :)

Product Version: Not Selected
Tags:
more ▼

asked Sep 24 '14 at 08:08 PM in Blueprint Scripting

avatar image

Golge
1 4 6 6

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Hi Golge,

What you should do is cast to the player, and if the cast succeeds then run the damage. This is a rough idea of what I did to get this to work:

alt textalt text

more ▼

answered Sep 24 '14 at 09:14 PM

avatar image Golge Sep 24 '14 at 09:32 PM

Thanks man! So kind of you to add screenshots :)

(comments are locked)
10|2000 characters needed characters left

On the first Blueprint connect a wire from the == compare node to the condition on the Branch node. It's not working probably because it's registering always as false right now.

more ▼

answered Sep 24 '14 at 08:15 PM

avatar image

mikepurvis
2.5k 100 65 260

avatar image Golge Sep 24 '14 at 08:38 PM

Still doesn't work :/

(comments are locked)
10|2000 characters needed characters left
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