Player.CastSpell("Fireball", Enemy);
Player.CastSpell("Heal", Player);This code casts a spell named "Heal" on the "Player" target, which restores their health. Package library: This function may be included in various game engine libraries, such as Unreal Engine or Unity.