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"

Pending Kill Error!! Spawned Tower would not shoot Projectile At Enemy in a Tower Defence Game

Hi guys, I am in need of some assistance in fixing a blueprint for projectile shooting in a tower defence game. What I have found to be a problem inside my game was that of if i place the tower inside the game before playing it, it works just fine. However, when I play the game and clicked on the button which I have set in the UI, the tower did spawn on the map, but it did not shoot any projectiles towards the enemy. Would anyone have any idea what the problem is and where it lies? Before, an error came out in the message log saying something along the lines of failed to obtain the enemies array and something pending kill before showing that the problem was the set world rotation node." (If i manage to get the error up again, I will edit the post and show the exact message log).

Below I have attached a picture of the Tower blueprint of when the spawned tower is inside the map. The one under that is that of the same blueprint but when the tower was placed inside the level before initiating the game. The difference between the two I think is that of the length of the Enemies Array. The spawned tower one managed to have a 0 value which caused a false output on the branch.

Spawned Tower Blueprint alt text

Pre-Placed Tower Blueprint alt text

Also within these two towers, I have created a targeting component which targets the enemy found. They both again came out with different results. I'm not sure how to explain the problem but the image are below.

Spawned Tower Targeting Component Blueprint alt text

Expected (Pre-placed Tower) Targeting Component Blueprint alt text

And down here is a picture of the UI event graph that I used to set the tower placement button in case anyone needs this information to solve it. alt text

So yea... if anyone would be able and are willing to help and need more information regarding the blueprints to help pinpoint the location, please ask me because i'm really desperate to get this done as it is my major work for my High School Certificate. Thank you all in advance for reading and helping me solve the problem. Thanks :)

Product Version: UE 4.12
Tags:
more ▼

asked Jul 18 '16 at 01:15 PM in Blueprint Scripting

avatar image

r0cky_r0ad
13 3 4 6

avatar image r0cky_r0ad Jul 20 '16 at 07:38 PM

Are there anyone who knows the solution to this problem?

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

0 answers: sort voted first
Be the first one to answer this question
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