set_despawn_time - ryzom/ryzomcore GitHub Wiki
title: Set Despawn Time description: published: true date: 2023-03-12T21:31:10.947Z tags: editor: markdown dateCreated: 2023-03-12T21:31:08.045Z
The setDespawnTime native AI script function is used to set the time before the current group is despawned.
()setDespawnTime(DespawnTime: f)
- DespawnTime (float): The despawn time in ticks. A value of -1 will set the despawn time to "pseudo-infinite".
()setDespawnTime(80); ()setDespawnTime(-1);
These examples set the despawn time for the current group to 80 ticks and "pseudo-infinite", respectively.