Warp Command w/Animation #6001
-
Hi there! I'm playing with command scripts as an easy way to get started with the project and had an idea I wanted to implement. I have set up a !warp command that successfully warps the player to their home point using I had seen in the So, after doing some more searching and coming up short, I thought I'd ask here. Is there a line I could add to my custom command script to play the BLM warp animation before the warp occurs? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Haven't tried to track it down... but wonder if you might be able to "cheat" with the function(s) called in the warp lua itself? |
Beta Was this translation helpful? Give feedback.
-
You will probably need to use injectActionPacket for this. This is from the !injectaction command.
Examples:
This is likely the item warp animation you mentioned above.
action ID is set to Edit: Adding onto this. This only controls visual animations. You would want to use this above your warp command. If I remember correctly, the warp status effect already has a delay attached to it so the animations will likely line up with the zoning. If not you could use a timer to sync up the animation with the teleporting. |
Beta Was this translation helpful? Give feedback.
You will probably need to use injectActionPacket for this.
This is from the !injectaction command.
player:injectActionPacket(target:getID(), actionId, animationId, speceffect, reaction, message, 10, 1)
Examples:
This would give the effect of a player casting warp on themself.
player:injectActionPacket(player:getID(), 4, 261,…