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. 

What happens when an actor crosses Kill Z?

What actually happens when an actor crosses Kill Z?

I jump one of my two characters off the edge of the map and when they cross Kill Z they disappear and their health bar empties, but all my references to the character are not coming back as nullptr (ie. CharacterPointer == nullptr returns false). My check PlayerArray == 1 comes back as false as well, even though the other player (character) is physically not there.

Am I doing something wrong here? What is Kill Z doing in this situation and is that what it is supposed to do? Is there any way I can change the behavior of Kill Z?

Let me know if you need more information to help me answer my question.

Product Version: Not Selected
Tags:
more ▼

asked Jan 11 '15 at 07:26 PM in C++ Programming

avatar image

burgerbob
133 10 11 19

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

1 answer: sort voted first

Hi,

Every time when actor cross KillZ, It execute actor event FellOutOfWorld, and by default (Actor implementation) it destroy itself (Except Controllers, this class override actor implementation).

In your case you should override this function and implement your own behavior (for example, respawn character)

 Void MyCharacter::FellOutOfWorld(const class UDamageType& dmgType)
 {
     // Todo smth
 }


Best regards, Gleb

more ▼

answered Jan 12 '15 at 02:14 PM

avatar image

Gleb.Bulgakov
1.8k 76 19 143

(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