Skip to content

deactivate_easter_egg

Ryzom Core Wiki edited this page Jul 8, 2024 · 2 revisions

title: Deactivate Easter Egg description: published: true date: 2023-03-16T23:05:57.845Z tags: editor: markdown dateCreated: 2023-03-16T22:22:13.860Z

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.

Clone this wiki locally