Skip to content

Warp Command w/Animation #6001

Answered by UmeboshiXI
Binarynova asked this question in Q&A
Discussion options

You must be logged in to vote

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)

  • Player in this example is the action initiator. It would be the entity casting the spell/skill/whatever.
  • target:getID() is obviously the target of the effect.
  • actionId is the index of the action being performed. You can find these in the action.lua file in scripts/enums. It controls what animation sets are displayed.
  • animationId is the animation you want to display.

Examples:
This would give the effect of a player casting warp on themself.

player:injectActionPacket(player:getID(), 4, 261,…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Binarynova
Comment options

Answer selected by Binarynova
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants