remove skill||doc135592

September 20, 2022

Format

Entity:removeSkill ( fullName )
  • The class of the function:Entity

Description

Removes a specified ability from the target entity.


Parameters

Variable name type Description
fullName string Skill configuration name


Code Samples

Add a skill to itself in the server-side script attached to the entity object, and remove the skill after 100 frames (5 seconds).

this:addSkill("myplugin/Skill001")
World.Timer(100,function()
    this:removeSkill("myplugin/Skill001")
    end)