I wrote the script without any scripting knowledge. I just looked at a couple of vanilla scripts and read a few lines in the CK Wiki. Although it works, If I made a mistake somewhere, you can share a comment or send me a message.



  • Setting up the properties for the script.
  • When the magic effect starts, register for the two animation events: "JumpUp" and "JumpDown". The game will "listen" for when these events occur.
  • On animation event "JumpUp", the visual effects will play(will be applied). On animation event "JumpDown", the visual effects will be stopped.
  • When the magic effect is removed, unregister for the animation events and stop the visual effects.
Note: About No4, if you remove the Jetpack mid air, the visual effects will be constantly applied, hence the need to stop them. According to the wiki, unregistering is done automatically with removing the magic effect, but it also doesn't hurt if it's present in the script.



The screenshot above represents the updated script. I changed the script a little bit in v1.1 and added detection for more animation events. The reason for this is that the visual effects were not starting/stopping in some situations. It seems that different animation events for jumping occur depending if your character is male or female, if he/she jumps in place or is moving. So hopefully I've covered (most of)  these situations. I have added another article with alternative way to attach the visual effect, by using condition check to detect when the player is jumping(or rather in jump state).

Article information

Added on

Edited on

Written by

robotized

0 comments