is dead

is dead

deadobjects

Details

Kode wheel segment Combat
Style Boolean variable
Modifiers None
Primarily WHEN/DO Both
Pre-made brains that use it Unknown

Combat >  is dead

Description

This tile is a boolean. It determines if an object is dead (but not destroyed). If you use [started to][is dead] then all objects when they start their death animation will return a true result, if you just use [is dead] only objects that have destroy after death turned off will register a true result long enough to be useful. This tile is most useful when creating your own death animation effects, or creating a respawn (see Other Uses).

Example Code

WHEN [started to][is dead] DO [revive]

Modifiers

None

Other Uses

 

Enemy disappears instead of playing death animation

WHEN [is dead] DO [destroy]

This kode line will allow you to do various things to your character upon death if you turn destroy after death off. Because you have pinpointed the moment of death and then set a boolean to true you can do timed things, such as play music, animate the character with emotes, change colour, move position, play fx…the list is only limited by your imagination.

WHEN [started to][is dead] DO [boolvar:dying][=][true]

WHEN [boolvar:dying]  DO …….

To use this as a respawn system:

WHEN [started to][is dead] DO [boolvar:dying][=][true]

WHEN [boolvar:dying]  DO

…WHEN [countdown timer][4] DO [position][=][IWP:respawn point][position]

…/…WHEN DO [revive]

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: