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
The setAutoSpawn native AI script function determines whether the current group should respawn automatically after despawn.
()setAutoSpawn(AutoSpawn: f)
- AutoSpawn (float): Whether the group should automatically respawn (1) or not (0).
()setAutoSpawn(1);
This example code sets the group to respawn automatically after despawn.