Add skills||doc135591

September 20, 2022

Format

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

Description

Adds a specified skill to the target entity.


Notice

fullName="myplugin"+"/"+skill ID

As shown in the figure, you can right-click the skill and select "Copy ID" to get the skill ID. The skill ID in the figure is "Skill001", then fullName="myplugin/Skill001".


Parameters

Variable name type Description
fullName string Skill configuration name


Code Samples

Add a skill to itself in the server-side script mounted by the entity object.

this:addSkill("myplugin/Skill001")