set_auto_spawn - ryzom/ryzomcore GitHub Wiki
title: Set Auto Spawn description: published: true date: 2023-03-16T23:10:07.030Z tags: editor: markdown dateCreated: 2023-03-16T22:27:32.404Z
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.