> For the complete documentation index, see [llms.txt](https://docs.airship.gg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airship.gg/networking/airshipnetworkbehaviour/lifecycle-events.md).

# Lifecycle Events

Aside from the usual events in an `AirshipBehaviour`, the network behaviour adds the following you can use:

## General Networking Events

* `OnStartNetwork` - Method called when the object starts networking
* `OnStopNetwork` - Method called when the object stops networking

## Server Only

* `OnStartServer` - Method called when the object starts networking on the server
* `OnOwnershipServer` - Method called when the ownership of an object is changed on the server
* `OnSpawnServer` - Method called when the object spawns on the server
* `OnDespawnServer` - Method called when the object is despawned on the server
* `OnStopServer`  - Method called when the object stops networking on the server

## Client Only

* `OnStartClient` - Method called when the object starts networking on the client
* `OnOwnershipClient` - Method called when the ownership is changed on the client
* `OnStopClient` - Method called when the object stops networking on the client

## Execution Ordering of Events

<figure><img src="https://214663474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbaXflSJA8L9N9yOx089%2Fuploads%2Focx9fUY9eMZgvkn7ZKlF%2FUntitled%20Diagram.drawio(2).png?alt=media&amp;token=6b983192-c457-42a5-97e1-81767ea04d59" alt=""><figcaption><p>The Lifecycle Events of an AirshipNetworkBehaviour</p></figcaption></figure>
