set_auto_spawn - ryzom/ryzomcore GitHub Wiki


title: Set Auto Spawn description: published: true date: 2023-03-13T00:14:13.379Z tags: editor: markdown dateCreated: 2023-03-13T00:14:10.340Z

setAutoSpawn

The setAutoSpawn native AI script function determines whether the current group should respawn automatically after despawn.

Syntax

()setAutoSpawn(AutoSpawn: f)

Arguments

  • AutoSpawn (float): Whether the group should automatically respawn (1) or not (0).

Example

()setAutoSpawn(1);

This example code sets the group to respawn automatically after despawn.

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