deactivate_easter_egg - ryzom/ryzomcore GitHub Wiki


title: Deactivate Easter Egg description: published: true date: 2023-03-13T13:32:59.638Z tags: editor: markdown dateCreated: 2023-03-13T13:32:59.638Z

deactivateEasterEgg

The deactivateEasterEgg native AI script function calls the EGS function CCharacterControl::deactivateEasterEgg to deactivate an Easter Egg in the game world. It is used for the lootable items spawned by the Ryzom Ring scenario, not for the lootable item bags dropped by characters exiting a scenario session.

Syntax

()deactivateEasterEgg(easterEggId: f, sessionId: f, actId: f) // deactivateEasterEgg_fff_

Arguments

  • easterEggId (float): The id of the Easter Egg to deactivate.
  • sessionId (float): The session id of the scenario where the Easter Egg was spawned.
  • actId (float): The id of the scenario act that was associated with the Easter Egg.

Example

()deactivateEasterEgg(0, 4, 1);

This example code deactivates an Easter Egg with an ID of 0, in session ID 4, and an act ID of 1.

Notes

This function deactivates a scenario-generated Easter Egg. The activateEasterEgg function can be used to activate an Easter Egg.

⚠️ **GitHub.com Fallback** ⚠️